1,328   Composer PHP

一,用途:

PHP 用来管理依赖(dependency)关系的工具,类似Java的Maven,管理项目中使用的各种依赖包。
中文地址:http://www.phpcomposer.com/
外国地址:https://getcomposer.org/
感觉很慢,而且有些被墙了,还是中文站点吧。

二,安装:

win7 通过composer-setup.exe安装;它会自动添加composer的PATH;参考地址:

https://getcomposer.org/doc/00-intro.md#installation-windows

安装成功在cmd窗口会显示

C:\Users\luckybird>composer
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.0-dev (f1aa655e6113e0efa979b8b09d7951a762eaa04c) 2015-08-20 1
1:59:54

Usage:
command [options] [arguments]

三,使用:
主要用法:
http://docs.phpcomposer.com/01-basic-usage.html
一些小技巧:
https://segmentfault.com/a/1190000000355928




Leave a Reply

Your email address will not be published. Required fields are marked *