PHPackages                             maxts/omnipay-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. maxts/omnipay-bundle

ActiveLibrary[Payment Processing](/categories/payments)

maxts/omnipay-bundle
====================

Omnipay bundle for Symfony

0.2.0(11y ago)016MITPHPPHP &gt;=5.4.0

Since Mar 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/maxts/omnipay-bundle)[ Packagist](https://packagist.org/packages/maxts/omnipay-bundle)[ Docs](https://github.com/colinodell/omnipay-bundle)[ RSS](/packages/maxts-omnipay-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

omnipay-bundle
==============

[](#omnipay-bundle)

[![Latest Version](https://camo.githubusercontent.com/799b0c02ec8b4ea127734ef9243b288535385d5fbc6d0178198abbb283f1d0db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636f6c696e6f64656c6c2f6f6d6e697061792d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/colinodell/omnipay-bundle/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0f3e14ab461456b59d689489b9244a74cdf320a5bc67501160fb9fe376d870d2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6c696e6f64656c6c2f6f6d6e697061792d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/colinodell/omnipay-bundle)[![Coverage Status](https://camo.githubusercontent.com/aeff2153e2fa016e5bdecbf245bd7946d49379ef7d82c0d78c86761ca28679a3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636f6c696e6f64656c6c2f6f6d6e697061792d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/colinodell/omnipay-bundle/code-structure)[![Quality Score](https://camo.githubusercontent.com/4bf5140aa7cc698430db16dd69c202ee864b431b050418369b739c18f19e6d51/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f6c696e6f64656c6c2f6f6d6e697061792d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/colinodell/omnipay-bundle)[![Total Downloads](https://camo.githubusercontent.com/ec1f7d6a8140d4382b1ca1b6cf5d3047a74473690842d387d400da883faa3a5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6c696e6f64656c6c2f6f6d6e697061792d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/colinodell/omnipay-bundle)

Simple bundle for implementing [Omnipay](http://omnipay.thephpleague.com/) in your Symfony application.

Install
-------

[](#install)

Via Composer

```
$ composer require colinodell/omnipay-bundle
```

Enable the bundle in your `AppKernel.php`:

```
new ColinODell\OmnipayBundle\OmnipayBundle(),
```

Usage
-----

[](#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:

```
$stripe = $this->get('omnipay')->get('Stripe');

$paypal = $this->get('omnipay')->get('PayPal_Express');
```

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
-------------

[](#configuration)

Gateways can be configured in your `app/config/config.yml` file

```
omnipay:
    methods:
        # Your config goes here
```

For example, to configure the [Stripe](https://github.com/thephpleague/omnipay-stripe) and [PayPal Express](https://github.com/thephpleague/omnipay-paypal) gateways:

```
omnipay:
    methods:
        Stripe:
            apiKey: sk_test_BQokikJOvBiI2HlWgH4olfQ2

        PayPal_Express:
            username:     test-facilitator_api1.example.com
            password:     3MPI3VB4NVQ3XSVF
            signature:    6fB0XmM3ODhbVdfev2hUXL2x7QWxXlb1dERTKhtWaABmpiCK1wtfcWd.
            testMode:     false
            solutionType: Sole
            landingPage:  Login
```

**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](http://omnipay.thephpleague.com/gateways/configuring/) in the Omnipay documentation for more details.

Registering Custom Gateways
---------------------------

[](#registering-custom-gateways)

Custom gateways can be registered via the container by tagging them with `omnipay.gateway`:

```
# services.yml
services:
    my.test.gateway:
        class: Path\To\MyTestGateway
        tags:
            - { name: omnipay.gateway, alias: MyTest }

# config.yml
omnipay:
    methods:
        # Reference the gateway alias here
        MyTest:
            apiKey: abcd1234!@#
```

You can then obtain the fully-configured gateway by its alias:

```
$this->get('omnipay')->get('MyTest');
```

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Colin O'Dell](https://github.com/colinodell)
- [All Contributors](https://github.com/colinodell/omnipay-bundle/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

2

Last Release

4108d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3308569?v=4)[maxts](/maintainers/maxts)[@maxts](https://github.com/maxts)

---

Top Contributors

[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (15 commits)")[![maxts](https://avatars.githubusercontent.com/u/3308569?v=4)](https://github.com/maxts "maxts (3 commits)")[![carlcraig](https://avatars.githubusercontent.com/u/919781?v=4)](https://github.com/carlcraig "carlcraig (1 commits)")

---

Tags

bundlepaymentomnipay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maxts-omnipay-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/maxts-omnipay-bundle/health.svg)](https://phpackages.com/packages/maxts-omnipay-bundle)
```

###  Alternatives

[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38108.5k17](/packages/silverstripe-silverstripe-omnipay)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1018.7k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

155.1k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
