tobya/addlocalcomposerrepo
Composer 安装命令:
composer require tobya/addlocalcomposerrepo
包简介
Create Repository section for local dev package
README 文档
README
When creating new PHP packages for use with composer it is much easier to develop if you can link code directly to a test project.
I always forgot exactly what the syntax was to add this section to my composer file so I decided to make a command to do it.
Installation
You can install the package via composer:
composer require tobya/addlocalcomposerrepo
Usage
Package installs 2 Commands
php artisan composer:addlocalrepo php artisan composer:remove-local-repository
Both prompt for missing parameters
php artisan composer:addlocalrepo Package Name eg. tobya/QueueStatus: > tobya/WebflowSiteConverter2 Full Directory Path: > C:\Development\github\Webflow\WebflowSiteConverter All done - Local Repo for tobya/WebflowSiteConverter2 has been created. Don't forget to composer require your package Composer require tobya/WebflowSiteConverter2
Or Just do this
Add this to your composer.json file
"repositories": { "tobya/newpackage": { "type": "path", "url": "C:/Development/github/test/newpackageA", "options": { "symlink": true } } },
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-30