php - Composer custom private package not being found
one text
Solution:
The issue I was having was that the zip file that was auto-generated by Github when tagging a release did not have the composer.json
file in the top-level of the archive.
Because composer uses the information in that file to create the autoload settings, it was successfully importing and installing the package, but was not setting the autoload settings.
I've changed my test script composer.json
file to the following, and it works:
(Note that there is a tag in the repo called v1.4
)
{
"name": "benjam/test",
"repositories": [
{
"type": "vcs",
"url": "[email protected]/package_name.git"
}
],
"require": {
"my_team/package_name": "v1.4"
}
}
Source