PackageTrack
Sign in Get early access

league/omnipay

Omnipay payment processing library

v3.2.1 11M downloads/mo #1330 most downloaded on Packagist thephpleague/omnipay

What this package is like to depend on

Last release 5 years ago

no release in 18 months

Release timing varies

gaps range from 3 weeks to 2.4 years

Rarely documented

notes for 4 of 31 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

31 releases · first in 2013

0 releases in the last 12 months

see the full history below

Release timeline

31 releases · Feb 2013 to Jun 2021
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 31
  1. v3.2.1 05 Jun 2021

    Nothing published for this version

  2. v3.2.0 01 Jun 2021

    Nothing published for this version

  3. v3.1.0 22 Sep 2020

    Nothing published for this version

  4. v3.0.2 20 Mar 2019

    Nothing published for this version

  5. v3.0.1 15 May 2018

    Nothing published for this version

  6. v3.0.0 14 May 2018

    Nothing published for this version

  7. 2.3.2 10 Dec 2014
    Release notes

    Merge pull request #221 from dercoder/master

    ecoPayz Gateway added

    Open source →
  8. v2.3.1 17 Sep 2014
    Release notes

    Move to The PHP League.

    Open source →
  9. v2.3.0 12 May 2014
    Release notes
    • Add Coinbase gateway
    Open source →
  10. v2.1.0 08 Dec 2013

    Nothing published for this version

  11. v2.0.0 17 Nov 2013
    Release notes

    Package Separation

    As of 2.0, Omnipay has been split into separate packages. Core functionality is contained within the omnipay/common repository, and all gateways have their own repositories. This means that if your project only requires on a single gateway, you can load it without installing all of the other gateways. All officially supported gateways can be found under the Omnipay GitHub organization.

    If you want to install all gateways, you can still use the omnipay/omnipay metapackage in composer.json:

    {
        "require": {
            "omnipay/omnipay": "~2.0"
        }
    }
    

    Alternatively, if you want to migrate to an individual gateway, simply change your composer.json file to reference the specific gateway (omnipay/common will be included for you automatically):

    {
        "require": {
            "omnipay/paypal": "~2.0"
        }
    }
    

    Breaking Changes

    The GatewayFactory class can no longer be called in a static fashion. To help those who want to use dependency injection, you can now create an instance of GatewayFactory:

    $factory = new GatewayFactory();
    $gateway = $factory->create('PayPal_Express');
    

    The following code is invalid and will no longer work:

    $gateway = GatewayFactory::create('PayPal_Express'); // will cause PHP error!
    

    If you want to continue to use static methods for simplicity, you can use the new Omnipay class:

    // at the top of your PHP file
    use Omnipay\Omnipay;
    
    // further down when you need to create the gateway
    $gateway = Omnipay::create('PayPal_Express');
    

    Behind the scenes, this will create a GatewayFactory instance for you and call the appropriate method on it.

    Additions

    Omnipay now supports sending line-item data to gateways. Currently this is only supported by the PayPal gateway. Line item details can be added to a request like so:

    $request->setItems(array(
        array('name' => 'Food', 'quantity' => 1, 'price' => '40.00'),
        array('name' => 'Drinks', 'quantity' => 2, 'price' => '6.00'),
    ));
    

    For more details, see the pull request.

    Omnipay now also supports modifying request data before it is sent to the gateway.. This allows you to send arbitrary custom data with a request, even if Omnipay doesn't support a parameter directly. To modify the request data, instead of calling send() directly on the request, you may use the new sendData() method:

    // standard method - send default data
    $response = $request->send();
    
    // new method - get and send custom data
    $data = $request->getData();
    $data['customParameter'] = true;
    
    $response = $request->sendData($data);
    

    For more details, see the pull request.

    Open source →
  12. v1.1.0 19 Oct 2013

    Nothing published for this version

  13. v1.0.4 20 Sep 2013

    Nothing published for this version

  14. v1.0.3 28 Aug 2013

    Nothing published for this version

  15. v1.0.2 23 Jul 2013

    Nothing published for this version

  16. v1.0.1 29 Jun 2013

    Nothing published for this version

  17. v1.0.0 24 Jun 2013

    Nothing published for this version

  18. v0.9.3 12 Jun 2013

    Nothing published for this version

  19. v0.9.2 03 Jun 2013

    Nothing published for this version

  20. v0.9.1 07 May 2013

    Nothing published for this version

  21. v0.9.0 05 May 2013

    Nothing published for this version

  22. v0.8.4 14 Mar 2013

    Nothing published for this version

  23. v0.8.3 06 Mar 2013

    Nothing published for this version

  24. v0.8.2 28 Feb 2013

    Nothing published for this version

  25. v0.8.1 28 Feb 2013

    Nothing published for this version

  26. v0.8.0 27 Feb 2013

    Nothing published for this version

  27. v0.7.1 16 Feb 2013

    Nothing published for this version

  28. v0.7.0 15 Feb 2013

    Nothing published for this version

  29. v0.6.1 14 Feb 2013

    Nothing published for this version

  30. v0.6.0 12 Feb 2013

    Nothing published for this version

  31. v3.0-alpha.1 22 Apr 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive