php-firebase-cloud-messaging
php-firebase-cloud-messaging copied to clipboard
composer error
[InvalidArgumentException] Could not find package sngrl/php-firebase-cloud-messaging at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
At the moment there is only a dev-master version, most likely you have a property composer.json "minimum-stability" is set as "stable". Change it to "minimum-stability: dev" and it will work. Write whether you have received from you.
In La-ravel 5.2, I encountered same error as reported here.
I only changed that: Instead of keeping the package name in the require, I kept inside the require-dev. Then, it's working fine for me
composer update
I wouldn't advice anyone to just convert to dev
stability, what you should do is:
{
"minimum-stability": "dev",
"prefer-stable": true
}
This would allow only packages that can't resolved with stable version to use dev
.
What is the ETA on a stable version?
Hello, I am sorry for this newbie question, i never used composer before I try to install on windows, but i can't
composer.json
{
"minimum-stability": "dev",
"prefer-stable": true,
"name": "sngrl/php-firebase-cloud-messaging",
"description": "PHP API for Firebase Cloud Messaging from Google",
"license": "MIT",
"keywords": ["PHP","FCM","Google","Firebase","Cloud","Notifications","Android","iOS","Chrome"],
"homepage": "https://github.com/sngrl/php-firebase-cloud-messaging",
"authors": [
{
"name": "Sngrl",
"email": "[email protected]"
}
],
"require": {
"guzzlehttp/guzzle": "*",
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "*",
"mockery/mockery" : "*"
},
"autoload": {
"psr-4": {
"sngrl\\PhpFirebaseCloudMessaging\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"sngrl\\PhpFirebaseCloudMessaging\\Tests\\": "tests/"
}
}
}
results
D:\XAMPP\htdocs\firebase1>composer require sngrl/php-firebase-cloud-messaging
Using version dev-master for sngrl/php-firebase-cloud-messaging
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package sngrl/php-firebase-cloud-messaging No version set (parsed as 1.0.0) is satisfiable by sngrl/php-firebase-cloud-messaging[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
D:\XAMPP\htdocs\firebase1>
what the heck am i doing wrong?