Use composer mounting thinkphp [Global Installation]

1, enter CMD, see: https: //www.phpcomposer.com Getting Started Guide

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Note: If the appeal because the rights to perform the command fails, use the sudo try again to run  mv the line command.

Now only need to run the  composer command can be used without the need to enter the Composer  php composer.phar.

Global installation (on OSX via homebrew)

Composer is part of homebrew-php project.

brew update
brew tap josegonzalez/homebrew-php
brew tap homebrew/versions
brew install php55-intl
brew install josegonzalez/php/composer

2、安装中国全量镜像,目的:提升国内访问的速度...
composer config -g repo.packagist composer https://packagist.phpcomposer.com

3、进入composer的应用市场搜索think的应用包,名字为:
composer应用市场网站:https://packagist.org/

点击包 composer create-project topthink/think
 
 

Guess you like

Origin www.cnblogs.com/delphixe/p/12515126.html