Answer the question
In order to leave comments, you need to log in
How to hook the created package in composer?
I create a new package in the vendor \ shasoft folder, for example utils. I create it manually by copying an existing package and making edits to it. You can somehow pick up this package so that it registers in composer.json and generally wherever you need it.
Now I copy it to a separate directory, I write it to composer.json
"repositories": [
{
"type": "path",
"url": "../../my.packages/utils/",
"options": {
"symlink": false
}
}
]
Answer the question
In order to leave comments, you need to log in
It’s more correct to fork an existing package (it’s also on github, right?), commit your fixes to the fork repository and include it in your project.
https://getcomposer.org/doc/05-repositories.md#vcs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question