• 本地包目录结构
cylcode/bear
        ├── src
        ├── tests
        ├── README.md
        ├── composer.json
        └── LICENSE
        /manager
        ├── src
        ├── tests
        ├── README.md
        ├── composer.json
        └── LICENSE
  • 首先定义本地包的目录
composer config repositories.cylcode path ./cylcode
  • 安装本地包
composer require cylcode/bear:dev-master -vvv