3

I have a problem with some bundle, i use bundle: vich/uploader-bundle 1.0.1

so my project run only on PHP 7.0 ... how to downgrade some bundle to use PHP 5.6.20 ?

composer install:

Problem 1

  • Installation request for ocramius/package-versions 1.0.4 -> satisfiable by ocramius/package-versions[1.0.4].

  • ocramius/package-versions 1.0.4 requires php ~7.0 -> your PHP version (5.6.20) does not satisfy that requirement.

Problem 2

  • Installation request for ocramius/proxy-manager 2.0.1 -> satisfiable by ocramius/proxy-manager[2.0.1].

  • ocramius/proxy-manager 2.0.1 requires php ~7.0 -> your PHP version (5.6.20) does not satisfy that requirement.

Problem 3

  • ocramius/proxy-manager 2.0.1 requires php ~7.0 -> your PHP version (5.6.20) does not satisfy that requirement.

  • vich/uploader-bundle 1.0.1 requires ocramius/proxy-manager ~1.0|~2.0 -> satisfiable by ocramius/proxy-manager[2.0.1].

  • Installation request for vich/uploader-bundle 1.0.1 -> satisfiable by vich/uploader-bundle[1.0.1].

1
  • Did you gave a try to this setting ?
    – COil
    Sep 5, 2016 at 10:40

1 Answer 1

5

In your composer file add the PHP version config key like this:

"config": {
    "platform": {
        "php": "5.6"
    }
},

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.