This is a simple guide to use a package with composer from local git repository.
Imagine you have forked the repository bandwidth-throttle/token-bucket and pushed some changes on a branch called new-feature.
Now, you want to use it on another project. How to do this?
First, you need to do some changes on composer.json file in your main project.
Example (based on my git):
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/HermesMartins/token-bucket"
}
],
"require": {
"bandwidth-throttle/token-bucket": "dev-new-feature",
}
}
Finally, you can update your composer and it will pull the package from local git repository.
That's it.