PHP之Composer类库依赖管理神器

Composer中文版说明见:https://github.com/kaka987/Composer-zh

Composer 是PHP的类包依赖管理工具,用它可以轻松的引用第三方类包,类似于node的npm、ruby的bundler、CentOS中的yum等

1、PHP比你想象的要好得多

是的,PHP的流行不是没有道理的,看过这篇文字后,开始研究Composer,并决定在现用框架中集成Composer。

2、Composer为我们解决了两个大问题:

1)类库的依赖管理(尤其是N多类库的应用系统)
2)类的自动加载机制(Symfony/Zend/Laravel等均引用了Composer的类加载器)

Composer的安装

curl -sS https://getcomposer.org/installer | php

如果报错:
composer: You must enable the openssl extension to download files via https

原文地址:https://www.cnblogs.com/fuhaots2009/p/3508944.html