验证中...
composer安装使用及建立thinkphp项目
Raw Copy
C:\phpstorm\php>php -v
PHP 7.3.5 (cli) (built: May 1 2019 13:17:17) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
php最好设置系统环境变量 path
php命令行安装composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
查看composer版本信息
php composer.phar -V
修改composer国内稳定的镜像
php composer.phar config -g repo.packagist composer https://packagist.laravel-china.org
建立thinkphp 稳定版项目
php composer.phar create-project topthink/think tp5
建立thinkphp6开发版项目
php composer.phar create-project topthink/think=6.0.x-dev tp6
http://localhost
php ./tp6/think run -H -p 80
https://laravel.com/ 官方网站
建立Laravel
php composer.phar global require laravel/installer
php composer.phar create-project --prefer-dist laravel/laravel www
#http://localhost:8000
php artisan serve
php artisan serve --port=80

Comment list( 0 )

You need to Sign in for post a comment

Help Search