Download the PHP package maxts/omnipay-bundle without Composer
On this page you can find all versions of the php package maxts/omnipay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maxts/omnipay-bundle
More information about maxts/omnipay-bundle
Files in maxts/omnipay-bundle
Package omnipay-bundle
Short Description Omnipay bundle for Symfony
License MIT
Homepage https://github.com/colinodell/omnipay-bundle
Informations about the package omnipay-bundle
omnipay-bundle
Simple bundle for implementing Omnipay in your Symfony application.
Install
Via Composer
Enable the bundle in your AppKernel.php
:
Usage
This bundle provides a new service called Omnipay
. It contains a single method get()
, which returns a fully-configured gateway for you to use:
You can then use these gateways like usual.
Note: Gateways are "cached" - calling get('Some_Gateway')
multiple times will always return the same object.
Configuration
Gateways can be configured in your app/config/config.yml
file
For example, to configure the Stripe and PayPal Express gateways:
NOTE: You should probably consider using parameters instead of storing credentials directly in your config.yml
like that.
The method names should be whatever you'd typically pass into Omnipay::create()
. The configuration settings vary per gateway - see
Configuring Gateways in the Omnipay documentation for more details.
Registering Custom Gateways
Custom gateways can be registered via the container by tagging them with omnipay.gateway
:
You can then obtain the fully-configured gateway by its alias:
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.