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

rameezisrar's avatar

Codeception installation error via Composer

When i try to install Codeception Package via composer i get this error:

  • Using version ^2.3 for codeception/codeception ./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

    • Conclusion: don't install codeception/codeception 2.3.8
    • Conclusion: don't install codeception/codeception 2.3.7
    • Conclusion: don't install codeception/codeception 2.3.6
    • Conclusion: don't install codeception/codeception 2.3.5
    • Conclusion: don't install codeception/codeception 2.3.4
    • Conclusion: don't install codeception/codeception 2.3.3
    • Conclusion: don't install codeception/codeception 2.3.2
    • Conclusion: don't install codeception/codeception 2.3.1
    • Conclusion: don't install codeception/codeception 2.3.0
    • Conclusion: remove phpunit/php-code-coverage 6.0.1
    • Installation request for phpunit/phpunit (locked at 7.0.1, required as ~7.0) -> satisfiable by phpunit/phpunit[7.0.1].
    • Installation request for codeception/codeception ^2.3 -> satisfiable by codeception/codeception[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.x-dev].
    • Conclusion: don't install phpunit/php-code-coverage 6.0.1
    • codeception/codeception 2.3.x-dev requires phpunit/php-code-coverage >=2.2.4 <6.0 -> satisfiable by phpunit/php-code-coverage[2.2.4, 2.2.x-dev, 3.0.0, 3.0.1, 3.0.2, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.x-dev, 3.2.0, 3.2.1, 3.2.x-dev, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.x-dev, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.x-dev, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.x-dev, 5.1.0, 5.1.1, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.x-dev, 5.3.0, 5.3.x-dev].
    • Can only install one of: phpunit/php-code-coverage[2.2.4, 6.0.1].
    • Can only install one of: phpunit/php-code-coverage[2.2.x-dev, 6.0.1].
    • Can only install one of: phpunit/php-code-coverage[3.0.0, 6.0.1].
    • Can only install one of: phpunit/php-code-coverage[3.0.1, 6.0.1].
    • Can only install one of: phpunit/php-code-coverage[3.0.2, 6.0.1].
    • Can only install one of: phpunit/php-code-coverage[3.0.x-dev, 6.0.1].
0 likes
4 replies
rameezisrar's avatar

@mrbadr


{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.1.3",
        "fideloper/proxy": "~4.0",
        "laravel/framework": "5.6.*",
        "laravel/tinker": "~1.0",
        "laravel/cashier": "~7.0",
        "laravel/spark-aurelius": "*@dev"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "nunomaduro/collision": "~2.0",
        "phpunit/phpunit": "~7.0",
        "symfony/thanks": "^1.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories": [
        {
            "type": "path",
            "url": "./spark"
        }
    ]
Cronix's avatar

@abudo please format your code. The instructions are in the link under the reply box. It sure makes it easier to read, and for others to help you.

Please or to participate in this conversation.