Composer包开

创建一个Git项目

注:项目要是开源的

把项目clone到本地


composer init This command will guide you through creating your composer.json config. Package name (<vendor>/<name>) [taoyongxing/composer-develop-demo]: mumaxiansheng/composer-develop-demo Description []: composer开发demo Author [taoyongxing <taoyongxing@zhizubaba.cn>, n to skip]: Minimum Stability []: Package Type (e.g. library, project, metapackage, composer-plugin) []: License []: Define your dependencies. Would you like to define your dependencies (require) interactively [yes]? no Would you like to define your dev dependencies (require-dev) interactively [yes]? no { "name": "mumaxiansheng/composer-develop-demo", "description": "composer开发demo", "authors": [ { "name": "taoyongxing", "email": "taoyongxing@zhizubaba.cn" } ], "require": {} } Do you confirm generation [yes]? Would you like the vendor directory added to your .gitignore [yes]?

composer.json架构介绍了composer初始化的一些参数介绍

发布到packagist

打开网址 https://packagist.org/packages/submit

  • 在Repository URL (Git/Svn/Hg)输入自己的github项目地址
  • 点击check
  • 设置自动更新在GitHub中添加Webhooks

介绍版本约束

鲁ICP备16017569号-2