-2

I have tried to setup Sylius with the following guide: https://docs.sylius.com/en/latest/getting-started-with-sylius/installation.html and with PHP 8.x. But the following command fails:

composer create-project sylius/sylius-standard my-shop-app

with several problem messages like that:

... 
doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your php version (8.0.3) does not satisfy that requirement
...

How can I setup Sylius already now with PHP 8.x? I have seen https://github.com/Sylius/Sylius/issues/12298 which is still open, but as it looks like it seems to be done soon. Therefore I would like to setup a sylius/sylius-standard edition with the latest changes, but don't know how to do it exactly.

Thanks for help!

olibur
  • 287
  • 3
  • 13
  • Change the version of `sylius/sylius` to `dev-master` in `composer.json` and run `composer update sylius/sylius`. – Victor Vasiloi Apr 27 '21 at 16:00
  • Thanks @VIctorVasiloi for your hint. I assume I need to do this after I have already executed `composer create-project sylius/sylius-standard my-shop-app` with PHP7.x? Because if I try to execute `composer create-project sylius/sylius-standard my-shop-app` with PHP8.x I receive already the errors mentioned in the question. Or do I need to do the setup in 3 separate steps: 1. simply clone the sylius/sylius-standard repo, 2. Update sylius/sylius version in composr.json, 3. Run composer install? – olibur Apr 27 '21 at 19:21
  • You can do ​`composer create-project sylius/sylius-standard:1.9-dev my-shop-app`. – Victor Vasiloi Apr 28 '21 at 16:26
  • Thanks @victor-vasiloi pointing me to the right direction, I just needed to change the version according to https://packagist.org/packages/sylius/sylius-standard to "dev-master" and I could set it up with PHP8. – olibur Apr 29 '21 at 08:19
  • You're welcome! By the way, in this case 1.9-dev is equal to dev-master. – Victor Vasiloi Apr 29 '21 at 10:55
  • You're welcome! By the way, in this case 1.9-dev is equal to dev-master. – Victor Vasiloi Apr 29 '21 at 10:55

1 Answers1

0

It worked with the following command:

composer create-project sylius/sylius-standard:dev-master my-shop-app
olibur
  • 287
  • 3
  • 13