1. Home
  2. Docs
  3. composer
  4. 介绍及基本使用

介绍及基本使用

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 [...]

相关资料

官方文档-composer
中文文档-composer

html转markdown

Was this article helpful to you? Yes No

How can we help?