test
- [ ] 任务
文集整理于:
https://123191.xyz/archives/tag/composer
composer
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. This idea is not new and Composer is strongly inspired by node’s npm and ruby’s bundler.
基本使用
composer安装
Linux全局安装:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
windows安装:
下载并且运行 Composer-Setup.exe
用composer安装一个库
composer require monolog/monolog [...]
更新一个库
composer update monolog/monolog [...]
移除一个库
composer update monolog/monolog [...]