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