ThinkPHP is a free, open source, fast and simple object-oriented lightweight PHP development framework, released under the Apache2 open source license, and was born for agile web application development and simplified enterprise-level application development.
First of all: (Recommended learning: PHP programming from entry to proficiency)
The Web server environment is: phpstudy integrated installation package phpstudy Installation directory: D:\mydata\phpstudyphpstudy's Web root directory:
D:\mydata\phpstudy\data\PHPTutorial\WWW
1. You need to download and run Composer-Setup.exe, and manually find the location of php.exe.
2. Open the php.ini file and enable the openssl extension. Remove the semicolon in front of extension=php_openssl.dll
3. Download composer.phar, put the composer.phar file into the php directory, and create a new file in the php directory. composer.cmd, the content is written as: @php "%~dp0composer.phar" %*Save. Run this file, then open cmd and run: composer will appear:
4. Open the command line window and execute the following command:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
Note: Recently phpcomposer There is a problem with the mirror. You can change it to
composer config -g repo.packagist composer https://packagist.laravel-china.org
and then on the command line, switch to your web root directory and execute the following command:
composer create-project topthink/think=5.0.* tp5 --prefer-dist
5.1 version can be installed using the following instructions.
composer create-project topthink/think tp5 --prefer-dist
Note: If an error message appears, please operate according to the prompts or refer to the Composer Chinese documentation
5. After the installation is completed, the following will appear:
The above is the detailed content of How to install thinkphp in win10. For more information, please follow other related articles on the PHP Chinese website!