欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Composer
来自开放百科 - 灰狐
(版本间的差异)
小 |
小 (→安装) |
||
第4行: | 第4行: | ||
==安装== | ==安装== | ||
− | + | 下载 Composer | |
− | + | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
− | composer - | + | php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
+ | php composer-setup.php | ||
+ | php -r "unlink('composer-setup.php');" | ||
+ | 创建 composer.json | ||
+ | { | ||
+ | "require": { | ||
+ | "monolog/monolog": ">=1.0.0" | ||
+ | } | ||
+ | } | ||
+ | 运行 Composer | ||
+ | php composer.phar install | ||
+ | 更新 Composer | ||
+ | php composer.phar self-update | ||
==链接== | ==链接== |
2016年7月23日 (六) 01:47的版本
您可以在Wikipedia上了解到此条目的英文信息 Composer Thanks, Wikipedia. |
Composer 是PHP软件包管理系统,MIT许可协议。
安装
下载 Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
创建 composer.json
{ "require": { "monolog/monolog": ">=1.0.0" } }
运行 Composer
php composer.phar install
更新 Composer
php composer.phar self-update
链接
分享您的观点