Files
freeCodeCamp/guide/chinese/php/composer/index.md
2018-10-16 21:32:40 +05:30

27 lines
837 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Composer
localeTitle: 作曲家
---
## 作曲家
Composer是PHP包的包管理器。您使用`composer.json`文件来配置PHP项目的包类似于NodeJS项目中的`package.json`文件。
### 安装Composer
要安装Composer首先必须从[getcomposer.org](https://getcomposer.org/download/)下载它。
然后您可以在本地或全局安装Composer。
### 安装包
使用`composer install`安装包。 Composer会将`composer.json`文件中列出的软件包安装到vendor /文件夹。
```shell
composer install
```
### 更多信息:
* 作曲家网站: [getcomposer.org](https://getcomposer.org/)
* Composer的GitHub repo [composer / getcomposer](https://github.com/composer/getcomposer.org)
* Composer用于搜索包的流行的PHP包存储库 [Packagist](https://packagist.org/)