Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gymdone's avatar

Spark install -- Composer Problem

I seem to be at my last step of the install and get this problem. I did a > composer install

    1/2:        http://repo.packagist.org/p/provider-2020-04$dda39d483ecef141bc005276602492ebf76ece28f271d09f3ac9e0c27f497be4.json
    2/2:        http://repo.packagist.org/p/provider-latestf027bf03900e17ab40e7e0f3ced1a371d7005d2cfc5e3901e416501c8e6e1f0.json
    Finished: success: 2, skipped: 0, failure: 0, total: 2
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
    - Installation request for laravel/spark-aurelius ~9.0 -> satisfiable by laravel/spark-aurelius[v9.0.0, v9.0.1, v9.0.2, v9.0.3, v9.0.4, v9.0.5, v9.0.6, v9.0.7, v9.0.8, v9.0.9, 9.0.x-dev, v9.1.0, v9.1.1, v9.2.0, v9.2.1, v9.2.2].
    - Can only install one of: laravel/cashier[10.0.x-dev, v11.2.2].
    - Can only install one of: laravel/cashier[11.x-dev, 10.0.x-dev].
    - Can only install one of: laravel/cashier[v11.2.0, 10.0.x-dev].
    - Can only install one of: laravel/cashier[v11.2.1, 10.0.x-dev].
    - Can only install one of: laravel/cashier[v11.2.2, 10.0.x-dev].
    - Conclusion: install laravel/cashier 10.0.x-dev
    - Installation request for laravel/cashier ^11.2 -> satisfiable by laravel/cashier[11.x-dev, v11.2.0, v11.2.1, v11.2.2].

my composer.json is ----

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.2.5",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/cashier": "^11.2",
        "laravel/framework": "^7.0",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^2.0",
        "laravel/spark-aurelius": "~9.0"
        },
    "require-dev": {
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "phpunit/phpunit": "^8.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories": [
        {
            "type": "composer",
            "url": "https://spark-satis.laravel.com"
        }
    ],
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

My composer.lock file includes ---- But, has no spark entry ---

        {
            "name": "laravel/cashier",
            "version": "v11.2.2",
            "source": {
                "type": "git",
                "url": "https://github.com/laravel/cashier.git",
                "reference": "329f4e0bd93bef837e9291b2d09915009bda578f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laravel/cashier/zipball/329f4e0bd93bef837e9291b2d09915009bda578f",
                "reference": "329f4e0bd93bef837e9291b2d09915009bda578f",
                "shasum": ""
            },
            "require": {
                "dompdf/dompdf": "^0.8.0",
                "ext-json": "*",
                "illuminate/contracts": "^6.0|^7.0",
                "illuminate/database": "^6.0|^7.0",
                "illuminate/http": "^6.0|^7.0",
                "illuminate/log": "^6.0|^7.0",
                "illuminate/notifications": "^6.0|^7.0",
                "illuminate/routing": "^6.0|^7.0",
                "illuminate/support": "^6.0|^7.0",
                "illuminate/view": "^6.0|^7.0",
                "moneyphp/money": "^3.2",
                "nesbot/carbon": "^2.0",
                "php": "^7.2",
                "stripe/stripe-php": "^7.0",
                "symfony/http-kernel": "^4.3|^5.0",
                "symfony/intl": "^4.3|^5.0"
            },
            "require-dev": {
                "mockery/mockery": "^1.0",
                "orchestra/testbench": "^4.0|^5.0",
                "phpunit/phpunit": "^8.0|^9.0"
            },
            "suggest": {
                "ext-intl": "Allows for more locales besides the default \"en\" when formatting money values."
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "11.x-dev"
                },
                "laravel": {
                    "providers": [
                        "Laravel\Cashier\CashierServiceProvider"
                    ]
                }
            },
            "autoload": {
                "psr-4": {
                    "Laravel\Cashier\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Taylor Otwell",
                    "email": "[email protected]"
                }
            ],
            "description": "Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.",
            "keywords": [
                "billing",
                "laravel",
                "stripe"
            ],
            "time": "2020-04-28T15:44:32+00:00"
        },

Thanks, Jim in Florida

0 likes
3 replies
bobbybouwmann's avatar
Level 88

Hee Jim from Florida,

Did you read the error carefully? It says that it can't install spark because the cashier version is not compatible. You have version 11.2. However, spark requires you to use version 10.0.

This can have something to do with your current PHP version, but I'm not sure.

gymdone's avatar

OK, so should I change composer.json

        "laravel/cashier": "^11.2",

to

        "laravel/cashier": "10.0",

and run > composer update ??

Please or to participate in this conversation.