PHPackages                             darthsoup/laravel-omnipay - 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. darthsoup/laravel-omnipay

AbandonedArchivedLibrary

darthsoup/laravel-omnipay
=========================

Integerates Omnipay with Laravel and provides an easy configuration.

2.4.0(8y ago)019MITPHPPHP &gt;=5.4.0

Since Oct 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/darthsoup/laravel-omnipay)[ Packagist](https://packagist.org/packages/darthsoup/laravel-omnipay)[ RSS](/packages/darthsoup-laravel-omnipay/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (11)Used By (0)

Omnipay 2.5 for Laravel 5 &amp; Lumen
=====================================

[](#omnipay-25-for-laravel-5--lumen)

[![Total Downloads](https://camo.githubusercontent.com/6923160da47c28eed40c2baa1b55daed272dc243400c4cf1d2caeee471fd6324/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461727468736f75702f6c61726176656c2d6f6d6e697061792e737667)](https://packagist.org/packages/darthsoup/laravel-omnipay)[![Latest Version](https://camo.githubusercontent.com/f47f01083c14e55ed6a10ffa8783ec5c90eefea5143e5c2890e16e46299ad03b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461727468736f75702f6c61726176656c2d6f6d6e697061792e737667)](https://github.com/darthsoup/laravel-omnipay/releases)[![Dependency Status](https://camo.githubusercontent.com/c233e3dbee7102abdd49d4b011ddc4ce94fe033caf3b47b217dcea6d0b0d64bf/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6461727468736f75703a6c61726176656c2d6f6d6e697061792f62616467652e737667)](https://www.versioneye.com/php/darthsoup:laravel-omnipay)

Integrates the [Omnipay](https://github.com/thephpleague/omnipay) PHP library with Laravel 5 via a ServiceProvider to make Configuring multiple payment tunnels a breeze!

### Now using Omnipay 2.3/2.5

[](#now-using-omnipay-2325)

Version `2.0` and onwards has been updated to use Omnipay 2.3.

Version `2.2` and onwards is using Omnipay 2.5

Version `2.3` and onwards supports Laravel 5.4

Version `2.4` and onwards supports Laravel 5.5

### Composer Configuration

[](#composer-configuration)

Include the laravel-omnipay package as a dependency in your `composer.json`:

```
"ignited/laravel-omnipay": "2.*"

```

**Note:** You don't need to include the `omnipay/common` in your composer.json - it is a requirement of the `laravel-omnipay` package.

Omnipay recently went refactoring that made it so that each package is now a seperate repository. The `omnipay/common` package includes the core framework. You will then need to include each gateway as you require. For example:

```
"omnipay/eway": "*"

```

Alternatively you can include every gateway by requring:

```
"omnipay/omnipay": "*"

```

**Note:** this requires a large amount of composer work as it needs to fetch each seperate repository. This is not recommended.

### Installation

[](#installation)

Run `composer install` to download the dependencies.

#### Laravel 5

[](#laravel-5)

Add a ServiceProvider to your providers array in `config/app.php`:

```
'providers' => [

	'Ignited\LaravelOmnipay\LaravelOmnipayServiceProvider',

]
```

Add the `Omnipay` facade to your facades array:

```
	'Omnipay' => 'Ignited\LaravelOmnipay\Facades\OmnipayFacade',
```

Finally, publish the configuration files via `php artisan vendor:publish`.

#### Lumen

[](#lumen)

For `Lumen` add the following in your bootstrap/app.php

```
$app->register(Ignited\LaravelOmnipay\LumenOmnipayServiceProvider::class);
```

Copy the laravel-omnipay.php file from the config directory to config/laravel-omnipay.php

And also add the following to bootstrap/app.php

```
$app->configure('laravel-omnipay');
```

### Configuration

[](#configuration)

Once you have published the configuration files, you can add your gateway options to the config file in `config/laravel-omnipay.php`.

### Usage

[](#usage)

```
$cardInput = [
	'number'      => '4444333322221111',
	'firstName'   => 'MR. WALTER WHITE',
	'expiryMonth' => '03',
	'expiryYear'  => '16',
	'cvv'         => '333',
];

$card = Omnipay::creditCard($cardInput);
$response = Omnipay::purchase([
	'amount'    => '100.00',
	'returnUrl' => 'http://bobjones.com/payment/return',
	'cancelUrl' => 'http://bobjones.com/payment/cancel',
	'card'      => $cardInput
])->send();

dd($response->getMessage());
```

This will use the gateway specified in the config as `default`.

However, you can also specify a gateway to use.

```
Omnipay::setGateway('eway');

$response = Omnipay::purchase([
	'amount' => '100.00',
	'card'   => $cardInput
])->send();

dd($response->getMessage());
```

In addition you can take an instance of the gateway.

```
$gateway = Omnipay::gateway('eway');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 59.4% 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 ~162 days

Recently: every ~235 days

Total

10

Last Release

3130d ago

Major Versions

1.0.x-dev → 2.0.02015-03-18

1.1.x-dev → 2.0.x-dev2015-09-03

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/adc3192118eb415f2a8eaa5b256f28562f784844a1024c4d34ea933ae2845261?d=identicon)[darthsoup](/maintainers/darthsoup)

---

Top Contributors

[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (19 commits)")[![darthsoup](https://avatars.githubusercontent.com/u/1668978?v=4)](https://github.com/darthsoup "darthsoup (7 commits)")[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (6 commits)")

---

Tags

laravelpaymentslaravel5omnipay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/darthsoup-laravel-omnipay/health.svg)

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

###  Alternatives

[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[dolphiq/laravel-aescrypt

AES encrypt and decrypt Eloquent attributes inspired by elocryptfive

171.7k](/packages/dolphiq-laravel-aescrypt)

PHPackages © 2026

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