corcel / corcel

Use WordPress backend with Laravel or any PHP application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install with Hyperf framework

cayolblake opened this issue · comments

Hello @jgrossi

When attempting to install corcel for usage with Hyperf framework, I'm getting the following.

$ php80 ~/bin/composer.phar require jgrossi/corcel

Using version ^6.0 for jgrossi/corcel
./composer.json has been updated
Running composer update jgrossi/corcel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - jgrossi/corcel[v6.0.0, ..., 6.0.x-dev] require illuminate/database ^9.0 -> satisfiable by illuminate/database[v9.0.0-beta.1, ..., 9.x-dev].
    - illuminate/database[v9.0.0-beta.1, ..., 9.x-dev] require symfony/console ^6.0 -> found symfony/console[v6.0.0-BETA1, ..., 6.1.x-dev] but the package is fixed to v5.3.10 (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.
    - Root composer.json requires jgrossi/corcel ^6.0 -> satisfiable by jgrossi/corcel[v6.0.0, 6.0.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

The doc for using with other frameworks doesn't actually mention anything regarding installation!

Would appreciate if you could shed some light here :)

Is this project still active? 🤔

it seems hyperf requires symfony/console v5 and Corcel v6 requires via illuminate/database symfony/console v6. you can still use Corcel v5 in this case.

Okay, so that's what I'm getting so far, not a composer expert but I don't think the following errors means a PHP version conflict only.

$ php80 ~/bin/composer.phar require jgrossi/corcel:5.0.0

./composer.json has been updated
Running composer update jgrossi/corcel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/contracts[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.0.16) does not satisfy that requirement.
    - illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.0.16) does not satisfy that requirement.
    - illuminate/contracts[v8.12.0, ..., 8.x-dev] require psr/container ^1.0 -> found psr/container[1.0.0, ..., 1.x-dev] but the package is fixed to 2.0.2 (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.
    - jgrossi/corcel v5.0.0 requires illuminate/support ^8.0 -> satisfiable by illuminate/support[v8.0.0, ..., 8.x-dev].
    - illuminate/support[v8.12.0, ..., 8.x-dev] require illuminate/contracts ^8.0 -> satisfiable by illuminate/contracts[v8.0.0, ..., 8.x-dev].
    - Root composer.json requires jgrossi/corcel 5.0.0 -> satisfiable by jgrossi/corcel[v5.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Then I tried with PHP 7.3

$ php73 ~/bin/composer.phar require jgrossi/corcel:5.0.0

./composer.json has been updated
Running composer update jgrossi/corcel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php >=8.0 but your php version (7.3.33) does not satisfy that requirement.
  Problem 2
    - friendsofphp/php-cs-fixer is locked to version v3.6.0 and an update of this package was not requested.
    - friendsofphp/php-cs-fixer v3.6.0 requires php ^7.4 || ^8.0 -> your php version (7.3.33) does not satisfy that requirement.
  Problem 3
    - psr/container 2.0.2 requires php >=7.4.0 -> your php version (7.3.33) does not satisfy that requirement.
    - hyperf/testing v2.2.24 requires psr/container ^1.0|^2.0 -> satisfiable by psr/container[2.0.2].
    - hyperf/testing is locked to version v2.2.24 and an update of this package was not requested.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.