Yesterday, I pushed my code to github. I also wanted to publish it for composer, but I found a problem. First, I linked my packagist account with github account. Later, I created a package based on github repo. From now on, if I use code in composer.json:
"require": {
"mbajda/yahoo-weather": "dev-master"
}
I can use that dependency. But when I open Packagist page and search for that dependency, I get 'no packages found' text. What could go wrong? It’s not a private package.
My composer.json
:
{
"name": "mbajda/yahoo-weather",
"description": "Yahoo Weather API PHP Implementation",
"type": "library",
"license": "MIT",
"version": "1.0.0",
"keywords": ["api", "yahoo", "yahoo-weather", "weather"],
"minimum-stability": "stable",
"require": {
"php": ">=7.1.0"
},
"autoload": {
"psr-4": {
"YahooWeather\\": "src/"
}
}
}
It was a problem with Packagist, which has been solved today.