Home> PHP Framework> ThinkPHP> body text

How to install thinkphp in win10

(*-*)浩
Release: 2019-09-11 11:06:24
Original
2674 people have browsed it

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.

How to install thinkphp in win10

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
Copy after login

1. You need to download and run Composer-Setup.exe, and manually find the location of php.exe.

How to install thinkphp in win102. Open the php.ini file and enable the openssl extension. Remove the semicolon in front of extension=php_openssl.dll

How to install thinkphp in win10

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:

How to install thinkphp in win10

4. Open the command line window and execute the following command:

composer config -g repo.packagist composer https://packagist.phpcomposer.com
Copy after login

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
Copy after login

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
Copy after login

5.1 version can be installed using the following instructions.

composer create-project topthink/think tp5 --prefer-dist
Copy after login

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:

How to install thinkphp in win10

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!