curl -sS https://getcomposer.org/installer | php
,然后执行mv composer.phar /usr/local/bin/composer
命令,此时composer安装完成。repo.packagist composerhttps://packagist.phpcomposer.com
<code>{ "<span>require</span>": <span>{ "<span>monolog/monolog</span>": <span><span>"1.0.*"</span></span>} </span>}</code>
5.执行composer install。
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介绍了linux安装composer,包括了composer,linux安装方面的内容,希望对PHP教程有兴趣的朋友有所帮助。