欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Composer
来自开放百科 - 灰狐
(版本间的差异)
(以“{{SeeWikipedia}} Composer 是PHP软件包管理系统,MIT许可协议。 ==链接== *[https://getcomposer.org/ Composer官网] *[http://github.com/composer/c...”为内容创建页面) |
小 (→项目) |
||
(未显示1个用户的10个中间版本) | |||
第1行: | 第1行: | ||
− | {{SeeWikipedia}} | + | {{SeeWikipedia|Composer (software)}} |
− | Composer 是[[PHP]] | + | [[文件:composer-logo.jpeg|right|Composer]] |
+ | |||
+ | Composer | ||
+ | |||
+ | ==简介== | ||
+ | [[文件:packagist-logo.png|right|Packagist]] | ||
+ | Composer 是 [[PHP]] 软件包管理系统,MIT 许可协议。 | ||
+ | |||
+ | [https://packagist.org/ Packagist] The PHP Package Repository | ||
+ | |||
+ | ==功能== | ||
+ | |||
+ | ==指南== | ||
+ | [https://getcomposer.org/download/ 下载 Composer] | ||
+ | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
+ | php -r "if (hash_file('sha384', 'composer-setup.php') === '572cb359b56ad9ae52f9c23d29d4b19a040af10d6635642e646a7caa7b96de717ce683bd797a92ce99e5929cc51e7d5f') { 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" | ||
+ | } | ||
+ | } | ||
+ | mv composer.phar /usr/local/bin/composer | ||
+ | |||
+ | 运行 Composer | ||
+ | composer install | ||
+ | 更新 Composer | ||
+ | composer self-update | ||
+ | 回滚 | ||
+ | composer self-update --rollback | ||
+ | |||
+ | ==项目== | ||
+ | *[https://github.com/composer/semver composer/semver] 增加版本约束解析和检查功能的语义版本管理工具。 | ||
+ | *[https://github.com/composer/spdx-licenses composer/spdx-licenses] SPDX (Software Package Data Exchange) licenses list and validation library. | ||
+ | *[https://github.com/composer/ca-bundle composer/ca-bundle] 小型实用程序库,可以让你找到系统 [[CA]] 捆绑(bundle)的路径,并包括一个回退到 Mozilla CA 捆绑(bundle)。 | ||
+ | |||
+ | ==文档== | ||
+ | |||
+ | ==图集== | ||
==链接== | ==链接== | ||
第8行: | 第48行: | ||
[[category:package]] | [[category:package]] | ||
+ | [[category:symfony]] | ||
[[category:PHP]] | [[category:PHP]] |
2022年3月24日 (四) 05:39的最后版本
您可以在Wikipedia上了解到此条目的英文信息 Composer Thanks, Wikipedia. |
Composer
目录 |
[编辑] 简介
Composer 是 PHP 软件包管理系统,MIT 许可协议。
Packagist The PHP Package Repository
[编辑] 功能
[编辑] 指南
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '572cb359b56ad9ae52f9c23d29d4b19a040af10d6635642e646a7caa7b96de717ce683bd797a92ce99e5929cc51e7d5f') { 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" } }
mv composer.phar /usr/local/bin/composer
运行 Composer
composer install
更新 Composer
composer self-update
回滚
composer self-update --rollback
[编辑] 项目
- composer/semver 增加版本约束解析和检查功能的语义版本管理工具。
- composer/spdx-licenses SPDX (Software Package Data Exchange) licenses list and validation library.
- composer/ca-bundle 小型实用程序库,可以让你找到系统 CA 捆绑(bundle)的路径,并包括一个回退到 Mozilla CA 捆绑(bundle)。
[编辑] 文档
[编辑] 图集
[编辑] 链接
分享您的观点