Last active
February 23, 2019 10:05
-
-
Save qwersk/e92eb5b5e397f1ac4ba507a7df1d1ce3 to your computer and use it in GitHub Desktop.
Installing package from local git repository #composer
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
// package's composer.json file | |
{ | |
"name": "vendor-name/package-name", | |
"type": "library", | |
"autoload": { | |
"psr-4": { | |
"namespace\\": "src/" | |
} | |
}, | |
"minimum-stability": "dev" | |
} |
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
// project's composer.json | |
{ | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "d:/xampp/htdocs/packages-repo/test-package" | |
} | |
], | |
"require": { | |
"qwer/test-package": "dev-master" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related information:
https://gist.github.com/ziadoz/6a4186f942062b8dbcdb
http://marekkalnik.tumblr.com/post/22929686367/composer-installing-package-from-local-git
https://stackoverflow.com/questions/17426192/composer-using-a-local-repository