how to publish a composer pacakge?

  1. 将项目发布到github,编辑composer.json,然后生成一个release
  2. 到https://packagist.org/注册一个账号
  3. 点击Submit,提交github的url
  4. 登录github,选择settings/hooks,新增一个Packagist的hooks,填写用户名以及token

发表评论