thephpleague / omnipay-example

Example application for Omnipay PHP payments library
MIT License
100 stars 50 forks source link

Upgrade to Silex 2.x? #16

Open judgej opened 7 years ago

judgej commented 7 years ago

I noticed a fork that had already done this, but I don't know how complete or stable it is. Pros, cons? Omnipay 3.0 Simple - https://github.com/thephpleague/omnipay-common/pull/137 - moves everything forward a few steps (PHP, support libraries) and so this may be a necessary upgrade.

delatbabel commented 7 years ago

I'm wondering whether we should port to a more commonly used framework -- Laravel, Symfony or Yii. Not many people use Silex these days.

judgej commented 7 years ago

For what it does, a micro framework is imo the way to go. I think the bigger frameworks carry too much cruft that makes it more than a simple demo.

For what it's worth, I don't particularly enjoy using any of the current crop of micro frameworks as they are not opinionated enough - I know what I want my simple app to do, so tell me where to put my shit already! :-)

barryvdh commented 7 years ago

I would rather go plain php then full stack. Should be minimal as possible to show how it works.

judgej commented 7 years ago

The latest slim framework is not too bad (with v2, v3 and v4 all being developed at the same time, which is a little messy). The key is making it light, and having the structure of the example application really obvious so people can see how it works. There should be no learning curve with the framework just to be able to see how OmniPay is working within it. But having routing, views/templates, logging, an error and debugging system etc. working out of the box (and staying out of the way as much as possible) is great. It's all the stuff that you end up needing to build in anyway, even when using "plain PHP" (which these days involves installing composer packages and joining them together with a bit of glue, to make...a little framework!)