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

vmunich's avatar

Help installing laracasts/integrated with composer

I'm trying to install laracasts/integrated with the following composer command:

composer require laracasts/integrated --dev

However, composer throws this error:

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
    - fabpot/goutte v2.0.4 requires guzzlehttp/guzzle >=4,<6 -> no matching package found.
    - fabpot/goutte v2.0.3 requires guzzlehttp/guzzle >=4,<6 -> no matching package found.
    - fabpot/goutte v2.0.2 requires guzzlehttp/guzzle 4.* -> no matching package found.
    - fabpot/goutte v2.0.1 requires guzzlehttp/guzzle 4.* -> no matching package found.
    - fabpot/goutte v2.0.0 requires guzzlehttp/guzzle 4.* -> no matching package found.
    - laracasts/integrated 0.15.6 requires fabpot/goutte ~2.0 -> satisfiable by fabpot/goutte[v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
    - Installation request for laracasts/integrated ^0.15.6 -> satisfiable by laracasts/integrated[0.15.6].

Is it possible to install it without goutte? I'm only installing it to be able to use Selenium in my phpunit tests.

Thanks

0 likes
11 replies
mikebronner's avatar

Can you try installing Guzzle first? composer require guzzlehttp/guzzle -- maybe there's something wrong with fabpot/goutte composer.json file, preventing it from installing. Also verify that your composer.json has the following at the bottom:

  "config": {
    "preferred-install": "dist"
  }

Hopefully this helps. :)

andremellow's avatar

@mikebronner

 I'm having the same issue, I do have guzzlehttp/guzzle instaled and "preferred-install": "dist"

my composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "laracasts/flash": "~1.3" ,
        "maatwebsite/excel": "~2.0.0",
        "guzzle/guzzle": "^3.9",
        "guzzlehttp/guzzle": "^6.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1",
        "behat/behat": "^3.0",
        "behat/mink": "^1.6",
        "behat/mink-goutte-driver": "^1.1",
        "behat/mink-extension": "^2.0",
        "laracasts/behat-laravel-extension": "^1.0",
        "behat/mink-selenium2-driver": "^1.2" 
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}
JeffreyWay's avatar

Hmm, yeah there must be some conflict. I just did a fresh install of Laravel 5.1, and then pulled in the Integrated package. All worked as expected.

andremellow's avatar

And how to fix it?

I have tried to remove bahat packages

 "behat/behat": "^3.0",
        "behat/mink": "^1.6",
        "behat/mink-goutte-driver": "^1.1",
        "behat/mink-extension": "^2.0",
        "laracasts/behat-laravel-extension": "^1.0",
        "behat/mink-selenium2-driver": "^1.2" 

and elso

        "guzzle/guzzle": "^3.9",
        "guzzlehttp/guzzle": "^6.0"

There is any way to list all packeges dependences? Looks like other plugin is requiring other version of guzzlehttp/guzzle, but I can tell which one.

andremellow's avatar

I just did composer update before componser require laracasts/integrated and works.

So I can't have integrated and behat running together ?

tibou's avatar

I am struggling with the same problem. Seems laracasts/integrated requires goutte 2.x and only the 3.x version of Goutte supports GuzzleHttp 6. How to fix this ?

coopers98's avatar

Yeah, conflict with Guzzle 6, Guotte 2 (needs to be 3 in Integrated)

digitalagua's avatar

So I downgraded to "guzzlehttp/guzzle": "5.3" and integrated installed.

"require": {
    "guzzlehttp/guzzle": "5.3"
 },
cabrerabywaters's avatar

I had the same problem.

  1. To fix it I just removed "guzzlehttp/guzzle": "X.X" from my Composer.json
  2. did a Composer Update to remove its dependencies,
  3. and finally install Integrated directly with "composer require laracasts/integrated --dev" So composer took care of finding the right dependencies for me =)

If you are using laravel 5.1 integrated was merged Laravel's core (almost sure) so you dont need to reference that any more, just make sure to extend TestCase class on your tests and Laravel will do the rest for you.

Hope it helps!

1 like
joseph_lapapa88's avatar

You can use of the dev-master while it is not yet fixed.

composer require --dev laracasts/integrated:dev-master
1 like

Please or to participate in this conversation.