Integrated: Installation failed

Laravel 4.2

composer require laracasts/integrated --dev

Result:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laracasts/integrated 0.10.1
    - Installation request for laracasts/integrated 0.10.* -> satisfiable by laracasts/integrated[0.10.0, 0.10.1].
    - Conclusion: remove symfony/dom-crawler v2.5.10
    - laracasts/integrated 0.10.0 requires symfony/dom-crawler ~2.6 -> satisfiable by symfony/dom-crawler[v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.6.4, v2.6.5].
    - Can only install one of: symfony/dom-crawler[v2.6.0, v2.5.10].
    - Can only install one of: symfony/dom-crawler[v2.6.1, v2.5.10].
    - Can only install one of: symfony/dom-crawler[v2.6.2, v2.5.10].
    - Can only install one of: symfony/dom-crawler[v2.6.3, v2.5.10].
    - Can only install one of: symfony/dom-crawler[v2.6.4, v2.5.10].
    - Can only install one of: symfony/dom-crawler[v2.6.5, v2.5.10].
    - Installation request for symfony/dom-crawler == 2.5.10.0 -> satisfiable by symfony/dom-crawler[v2.5.10].

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 15 (2 by maintainers)

Most upvoted comments

I have managed to resolve it this way: first run this composer require --dev symfony/css-selector:~2.7 and then composer require laracasts/integrated --dev and it works.

You need to install

 "require-dev": {
        "fzaninotto/faker": "~1.4",
        "laracasts/integrated": "^0.15.6",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.7",
        "symfony/css-selector": "2.8.*",
        "symfony/dom-crawler": "2.6.*"
    },

See above I have added following two lines in composer.json

“symfony/css-selector”: “2.8.", “symfony/dom-crawler”: "2.6.

and run : composer update then run : composer require laracasts/integrated --dev

It will fix the error.

Just gone through this very same issue with 5.4 and I have tried all the suggestions made above but the dependencies keep on cascading down through other 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].

Changing Guzzle back to ~5.3 breaks the Constant Contact PHPSdk… :-(`

I ended up changing my composer.json to this

    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "dingo/api": "1.0.*@dev",
        "tymon/jwt-auth": "0.5.*",
        "prettus/l5-repository": "^2.5",
        "michelf/php-markdown": "^1.6",
        "barryvdh/laravel-cors": "^0.8.0",
        "guzzlehttp/guzzle": "~5.3",       <--- Make sure to pull 5.3 instead of 6
        "laravel/socialite": "^2.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*",       <--- Only 2.8
        "symfony/dom-crawler": "2.8.*"       <--- Only 2.8
    },

I had symfony/[css|doom] as 3.0, which caused the error previously published. After that, I got an error at GuzzleHTTP 6.2 pulled by laravel/socialite so I forced the use of ~5.3 to be able to successfully install Integrated.