不积跬步,无以至千里!
1、
yum install php-zip wget unzip
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
接下来执行以下命令验证 composer 是否安装成功
composer
cd 到项目目录
composer require nesbot/carbon
标签: composer