I have created a private package at packagist.org under new organisation. Here are the steps i took so far:
- Developed a lumen package at local instance.
- Configured composer.json to be used with private composer package.
- Pushed the local package to private github repo.
- Added the package by URL at packagist.org and all the api token and credentials has also been setup.
- The project get added without any error.
- I have added the composer global auth token to require private package.
- When i either search or require the package to new lumen instance i get the error
[InvalidArgumentException]
Could not find a matching version of package grv/contentfeed. Check the pac
kage spelling, your version constraint and that the package is available in
a stability which matches your minimum-stability (dev).
This is how my composer.json looks like:
{
"name": "grv/contentfeed",
"description": "This is yet another Lumen composer package wrapper",
"type": "elx-core-plugin",
"version": "1.2.3",
"keywords": ["demo","lumen","drupal"],
"homepage": "https://github.com/gauravmehrasrijan/elx-feed",
"require": {
"composer/installers": "^1.0.24"
},
"autoload": {
"psr-4": {
"Grv\\Contentfeed\\": "/src"
}
},
"license": "MIT",
"minimum-stability": "dev",
"extra": {
"laravel": {
"providers": [
"Grv\\Contentfeed\\ContentFeedServiceProvider"
]
}
},
"authors": [
{
"name": "Gaurav Mehra",
"email": "gauravmehra1987@gmail.com"
}
],
"repositories": [
{"type": "composer", "url": "https://repo.packagist.com/grvatsrijan/"},
{"packagist.org": false}
]
}
Are there some more steps to it that i am missing. I have even tried creating new packages with different namespace but no success.