Created
August 31, 2018 08:11
-
-
Save akoepcke/ecb329f7cca0b72e5c49bf73aee50cee to your computer and use it in GitHub Desktop.
composer-link()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Require local folder as Composer dependency | |
// whereas _package_ is a unique package ID to keep composer from overwriting existing config | |
// | |
// from within the project folder, run the following: | |
// composer-link /path/to/package package | |
// Then run composer require as usual. | |
composer-link() { | |
composer config repositories."$2" '{"type": "path", "url": "'$1'"}' --file composer.json | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment