第一步:下載composerphp
curl -sS https://getcomposer.org/installer | php
第二步:將composer.phar 文件移動到bin目錄以便全局使用composer命令thinkphp
mv composer.phar /usr/local/bin/composer
第三步:切換國內鏡像composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
//安裝thinkphp5curl
composer create-project topthink/think=5.1.* tp5thinkphp5
完成!url