Home > PHP Framework > ThinkPHP > body text

How to install thinkphp in win10

王林
Release: 2019-09-11 11:47:43
forward
4265 people have browsed it

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

How to install thinkphp in win10

2. 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 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:

How to install thinkphp in win10##4. Open the command line window, Execute the following command:

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

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

5.1 version installation can be completed using the following command

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

!

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!

Related labels:
source:csdn.net
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
Popular Tutorials
More>
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!