thephpleague / omnipay-common

Core components for the Omnipay PHP payment processing library
MIT License
329 stars 242 forks source link

Unable to use Omnipay with laravel 5.2 #78

Closed GopaThemes closed 8 years ago

GopaThemes commented 8 years ago

I am developing an eCommerce website using Laravel 5.2 and trying to install Omipay ( payment processing library ) via composer. But composer throwing the following errors when I tried.

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

Problem 1

Please suggest me the solution how could I fix that?

Thanks

barryvdh commented 8 years ago

Sorry, Omnipay doesn't yet work on Symfony 3

GopaThemes commented 8 years ago

@barryvdh any suggestion to make it work?

barryvdh commented 8 years ago

No, sorry

delatbabel commented 8 years ago

I would suggest that you develop your code based on Laravel 5.1. That has long term support, and Laravel 5.2 does not. Once a version of Omnipay is released that supports Laravel 5.2+ and Symfony 3 then you can switch your code to a later version of Laravel -- either 5.2 or whatever other later version has long term support.

If you're building something like an e-commerce website then I would stick with a LTS version of Laravel. You don't want to be messing with the internal workings of your code every time a new idea pops into Taylor's head, and he does have a reputation for breaking a whole heap of stuff between minor and sometimes even point releases.

ejunker commented 8 years ago

Laravel 5.2 requires "symfony/http-foundation": "2.8.*|3.0.*" so it should be able to install version 2.8.* and work.

AlastairSheraton commented 8 years ago

For a Laravel 5.2 install, can I just update Laravel's composer.json and set the line to read "symfony/http-foundation": "2.8.*" - meaning this will force Laravel to run under symfony 2 ?