Download the PHP package marshung/my-composer without Composer
On this page you can find all versions of the php package marshung/my-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download marshung/my-composer
More information about marshung/my-composer
Files in marshung/my-composer
Download marshung/my-composer
More information about marshung/my-composer
Files in marshung/my-composer
Vendor marshung
Package my-composer
Short Description Learning Install GitHub Project By Composer
License MIT
Homepage https://github.com/marshung24/my-composer
Package my-composer
Short Description Learning Install GitHub Project By Composer
License MIT
Homepage https://github.com/marshung24/my-composer
Please rate this library. Is it a good library?
Informations about the package my-composer
練習GitHub+Composer+Packagist
動態Badges (poser.pugx.org)
靜態Badges (shields.io)
練習內容
- Git Repository 建立
- composer套件架構
- 發佈到 packagist.org
- 安裝並使用
- READMD編寫
Git Repository 建立
在GitHub上建立Repository
clone回本地端
初始化composer.json
建立README.md
推送回GitHub
最后一步需要加origin master参数的原因是空仓库是没有分支的,所以我们需要强制推送本地的master到远端的master,在这之后可以直接用git push命令推送而不需要加后面的参数了。
composer套件架構
composer.json
- 套件根目錄建立 composer.json
建立class
提交前測試程式是否有問題
建立測試文件
發佈到 packagist.org
訪問Packagist主頁,確認自己已經登錄,然後點擊右上角大大的Submit Package,然後填入我們創建的倉庫的地址,點擊Check,然後沒問題,再點擊Submit。
設定 GitHub Service Hook
安裝並使用
版本管理
Composer的版本管理
- 開發版: branch
- 如分支名為 mastar 時,版本號為 dev-master
- 正式版: tag
- 格式: major.minor.build
- major: [int] 當做了不相容的修改
- minor: [int] 當做了向下相容的功能性新增
- build: [int] 當做了向下相容的問題修正
-
查看現在分支
建立新分支0.1(dev)
建立stable版本(tag)
參考
記錄
- 20180414: MarsHung 建立專案
- 20180415: MarsHung 完成初版
All versions of my-composer with dependencies
PHP Build Version
Package Version
No informations.
The package marshung/my-composer contains the following files
Loading the files please wait ....