afterflow / workbench
Manage composer packages
0.5.3
2020-03-02 13:17 UTC
Requires
- php: >=7.2
- afterflow/recipe: 0.1.*
Requires (Dev)
- phpunit/phpunit: 8.*
- squizlabs/php_codesniffer: ^3.5
README
A simple tool to pull packages from composer and work on them locally.
Installation
composer require afterflow/workbench
Usage
Pull an existing package
Find a composer package, fetch it's source from GitHub,
put it under workbench/vendor/package
, register a path type repository in composer.json and
tell Composer to symlink the local version.
php artisan workbench:pull vendor/package --ssh
Remove package
Remove workbench/vendor/package
, remove the repository from composer.json and switch it to packagist.
When called with --remove
flag, it will also remove it from "require".
php artisan workbench:unlink --remove vendor/package
Craft new package
Generate a new composer package interactively, then add it to your workbench.
php artisan workbench:new vendor/package
License
MIT