Home >PHP Framework >ThinkPHP >How to install thinkphp in win10
ThinkPHP is a free, open source, fast and simple object-oriented lightweight PHP development framework, released under the Apache2 open source license, for agile web application development and simplified enterprise-level applications Developed and born.
First:
The Web server environment is: phpstudy integrated installation package
phpstudy installation directory: D:\mydata\phpstudy
phpstudy's Web root directory: D:\mydata\phpstudy\data\PHPTutorial\WWW
##1. Download and run composer and find php. The location of the 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 and put the composer.phar file Enter the php directory, create a new file composer.cmd in the php directory, and write the content as: @php "%~dp0composer.phar" %*Save. Run this file, then open cmd and run: composer
will appear:
##4. Open the command line window, Execute the following command:
composer config -g repo.packagist composer https://packagist.phpcomposer.comNote: There is a problem with the phpcomposer image recently, you can change it to
composer config -g repo.packagist composer https://packagist.laravel-china.org
Then switch to your command line Under the web root directory and execute the following command:
composer create-project topthink/think=5.0.* tp5 --prefer-dist5.1 version installation can be completed using the following command
composer create-project topthink/think tp5 --prefer-dist!
If you want to learn more related issues, please visit the php Chinese website:
thinkphp tutorial
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!