I'm using Symfony2 and for my projects I normally do composer require name/repository
which will install the repository in the vendor
folder and add a line in the composer.json
including the package and the installed version.
Supposing that I fork a project because I want to add something to it or fix a bug and use it in my Symfony app, I'd have to run composer require myname/repository
, modify it, test it and then submit a pull request. Afterwards, after the pull has been commit to the original repository, I'll have to delete my own and remove it from composer.json
and reinstall the original repository.
Is there a better workflow to this that doesn't have to change the json file that much?