Home  >  Article  >  Backend Development  >  PHP composer installation

PHP composer installation

不言
不言Original
2018-04-08 15:03:132885browse

This article introduces PHP composer installation. Now I share it with everyone. Friends in need can refer to it


composer installation

1 .Download composer

php -r "readfile('https://getcomposer.org/installer');" > composer-setup.phpphp composer-setup.phpphp -r "unlink('composer-setup.php');"

2. Global installation


##cp composer.phar /usr/local/bin/composer

3. Configure Chinese mirror

composer config -g repo.packagist composer https://packagist.phpcomposer.com

4.Laravel project is run for the first time as follows Script

composer install --no-scripts

chown -R www:www ./

Related recommend:

<a href="http://www.php.cn/php-weizijiaocheng-390846.html" target="_self">Composer installation and usage instructions</a>


The above is the detailed content of PHP composer installation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP-ExpeditionNext article:PHP-Expedition