php-firebase-cloud-messaging icon indicating copy to clipboard operation
php-firebase-cloud-messaging copied to clipboard

composer error

Open comdevx opened this issue 8 years ago • 5 comments

[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

comdevx avatar Jun 02 '16 08:06 comdevx

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.

sngrl avatar Jun 02 '16 09:06 sngrl

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

subasah avatar Feb 06 '17 11:02 subasah

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.

crynobone avatar Feb 22 '17 08:02 crynobone

What is the ETA on a stable version?

TomKeur avatar Feb 22 '17 15:02 TomKeur

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?

petrospap avatar Oct 12 '18 08:10 petrospap