-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to install via composer #65
Comments
This is currently possible by adding GitHub repository: ...
"repositories": [
...
{ "type": "vcs", "url": "https://github.com/crstauf/query-monitor-extend.git" }
...
] and installing the package with dev stability: composer require --dev crstauf/query-monitor-extend:@dev
# or, if you want specific commit
composer require --dev 'crstauf/query-monitor-extend:dev-master#5e11ab8af42b17c2e5a8fca656c421c8a2a6190e' I don't know if it's possible to install the package using the version name. @crstauf If I'm not mistaken, switching to Note #75 is required for this to work. |
Thanks, @mklepaczewski! Added tags with That should be it, correct? |
Yup, I just checked. It works: mkdir test
cd test
composer init
composer config repositories.0 vcs "https://github.com/crstauf/query-monitor-extend.git"
composer require crstauf/query-monitor-extend:1.6.1
./composer.json has been updated
Running composer update crstauf/query-monitor-extend
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking crstauf/query-monitor-extend (v1.6.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No security vulnerability advisories found |
Thanks! |
if you just log in to packigist you can add the package there. So we dont have to add vcs. ( But ill create another ticket :) ) I dont want to add it as a vcs since it has to be done manually. I can help with a pipeline but you need to do the initial setup. to add a repo to composer.json you can run composer config repositories.crstauf/query-monitor-extend vcs https://github.com/crstauf/query-monitor-extend.git
composer config --unset repositories.crstauf/query-monitor-extend |
and btw your ok (it works with composer) with semver tagging with Or without 'v' prefix |
No description provided.
The text was updated successfully, but these errors were encountered: