sungazer / composer-repository
Handy tool to manage composer repositories
dev-master
2020-10-25 14:37 UTC
Requires
- php: ^7.0
- composer-plugin-api: ^1.0|^2.0
- symfony/console: ^4.0|^5.0
- symfony/filesystem: ^4.0|^5.0
- symfony/finder: ^4.0|^5.0
Requires (Dev)
- composer/composer: ^1.0|^2.0
- symfony/var-dumper: ^5.0
This package is auto-updated.
Last update: 2025-02-25 23:59:56 UTC
README
Easily add and remove local repositories to composer.json. This can be useful when working on a library and wanting to quickly test it in a project.
As of now, only vcs
type linking with a local (i.e. on the filesystem) package is supported.
Install
composer global require sungazer/composer-repository
How to use
Add a repository
From your project's directory, run
composer repository:add <path to your repository>
And your composer.json will be updated with this link.
Remove a link
From your project's directory, run
composer repository:remove <package name>
And your composer.json will be updated. If a partial name is provided, the command looks for matches and will ask you to pick one.
Common options
-g
: Work on the global composer.json instance instead of the one in the current project.