Comments (1)
总结的非常好,提几点小修改建议:
- 这个 composer 的架构示意图。
http://sh.cdnimage.net/mweb/2019110615730352106894/15716430770863-15730352106894.jpg
composer 是个通用的包管理工具,和 packagist.org 没什么关系(packagist本身的 php 源码也开源了,自己能搭镜像源。)
其实资源库 composer 支持的多种来源,git
,svn
这几种源码版本控制(github 是用git的一种源),还支持从 PEAR 库(https://pear2.php.net/)直接拉包,或者自定义包的来源 url (很灵活!)。例如:
{ "repositories": [ { "type": "pear", "url": "http://pear2.php.net" } ], "require": { "pear-pear2.php.net/PEAR2_Text_Markdown": "*", "pear-pear2/PEAR2_HTTP_Request": "*" } }
所以 Github.com 那个地方的图标,建议直接写资源库
(参考 https://docs.phpcomposer.com/05-repositories.html), packagist.org 这个也不是必须的,有的方式不需要请求 packagist.org 拉包版本元数据(比如拉 PEAR 包),建议这里 packagist.org 的交互图标取消。只留一个和资源库
交互的箭头。
2.使用版本号这里,http://sh.cdnimage.net/mweb/2019110615730352106933/15686022681563-15730352106933.jpg
当一个版本声明同时有 大于,小于,~,^, || 等符号,除了 || 之外其他的符号之间需要用逗号 ,
隔开,表示 AND
3.travisCI 的配置文件,
”# 执行前需要运行的命令“ install: travis_retry composer install --no-interaction --prefer-source
这里 install
表示正式安装,安装前是 before_install
.
”# 安装“ install: travis_retry composer install --no-interaction --prefer-source
当然如果 script 前的 install
和 before_install
都理解为执行前也行。before_install 这步一般用来配系统变量,改配置之类的操作。
from biyeyuan.
Related Issues (20)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biyeyuan.