PHP composer installation

不言
Release: 2023-03-23 10:26:01
Original
2932 people have browsed it

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');"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template