roach-php / core

The complete web scraping toolkit for PHP.
https://roach-php.dev
1.37k stars 70 forks source link

Laravel 10 support? #188

Closed cjaoude closed 10 months ago

cjaoude commented 10 months ago

composer fails to install roach-php/laravel due to package dependency issues. Installed on fresh copy of current Laravel 10.39.0

// composer require roach-php/laravel:^3.0

  Problem 1
    - roach-php/core 2.0.0 requires sebastian/version ^3.0 -> found sebastian/version[3.0.0, 3.0.1, 3.0.2] but the package is fixed to 4.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - roach-php/core 2.0.1 requires symfony/css-selector ^6.0 -> found symfony/css-selector[v6.0.0, ..., v6.4.0] but the package is fixed to v7.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - roach-php/core v3.0.0 requires symfony/css-selector ^6.3.2 -> found symfony/css-selector[v6.3.2, v6.4.0] but the package is fixed to v7.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - roach-php/laravel 3.0.0 requires roach-php/core ^2.0 || ^3.0 -> satisfiable by roach-php/core[2.0.0, 2.0.1, v3.0.0].
    - Root composer.json requires roach-php/laravel ^3.0 -> satisfiable by roach-php/laravel[3.0.0].
ksassnowski commented 10 months ago

Closing this in favor of this issue on the laravel package repository: https://github.com/roach-php/laravel/issues/22

But to sum up: You currently need to provide the -W option when installing the package due to a version conflict with some of the Symfony components.