创建一个packgist安装插件
前期准备
- 创建github账号,并创建一个项目(以ClementIV/yii-rest-admin为例 )
- git clone 到本地
git clone https://github.com/ClementIV/yii-rest-admin
- 在项目下运行cmd,创建composer.json
>composer init
Welcome to the Composer config generator
This command will guide you through creating your composer.json config.
Package name (<vendor>/<name>) [dbis/yii-rest-admin]: //项目的名称回车直接使用[]的项目,也可以重新命名
Description []: rest rbac for YII2 //项目描述
Author [ClementIV <fyqnankai@163.com>, n to skip]: Yongqi Feng <[email protected]> //作者和联系方式 注意格式 xxx <@mail><