Answer the question
In order to leave comments, you need to log in
How to use your local version of the composer sub-package?
Composer.json has a dependency on the vendor/a package:
{
"require": {
"vendor/a": "^0.1.0"
}
}
{
"require": {
"vendor/b": "1.*"
}
}
"repositories": [
{
"type": "path",
"url": ".packages/vendor-b",
"options": {
"symlink": true
}
}
],
Answer the question
In order to leave comments, you need to log in
can be done via autoload, an example with the substitution of the dependent package Psr/Log for monolog/monolog
{
"require": {
"monolog/monolog": "^1.23"
},
"autoload": {
"psr-4": {"Psr\\Log\\": "./.package/log/Psr/Log"}
}
}
composer dump-autoload
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question