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

ActiveLibrary

lokielse/laravel-omnipay
========================

Integerates Omnipay with Laravel and provides an easy configuration.

v3.0.0(9y ago)018PHPPHP &gt;=5.4.0

Since Oct 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lokielse/laravel-omnipay)[ Packagist](https://packagist.org/packages/lokielse/laravel-omnipay)[ RSS](/packages/lokielse-laravel-omnipay/feed)WikiDiscussions master Synced 2mo ago

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

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

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

[![Total Downloads](https://camo.githubusercontent.com/f82928eef4989e6f607d58c58c33b593475682dcbc8bf721d5f88a1132784e7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6b69656c73652f6c61726176656c2d6f6d6e697061792e737667)](https://packagist.org/packages/lokielse/laravel-omnipay)[![Latest Version](https://camo.githubusercontent.com/d15e95d67549efb9c1c21c8638e23be2a0b5db24345f039dacd771f5edcc324b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6b69656c73652f6c61726176656c2d6f6d6e697061792e737667)](https://github.com/lokielse/laravel-omnipay/releases)[![Dependency Status](https://camo.githubusercontent.com/8d48d1011571c2b5cfb5abc07e2abe091468e4807d614e0894eeea6057cd4140/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6c6f6b69656c73653a6c61726176656c2d6f6d6e697061792f62616467652e737667)](https://www.versioneye.com/php/ignited:laravel-omnipay)

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

### Laravel 4 Support

[](#laravel-4-support)

For Laravel 4 see the [version 1.x](https://github.com/ignited/laravel-omnipay/tree/1.1.0) tree

### Now using Omnipay 2.3

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

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

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

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 60.7% 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 ~100 days

Recently: every ~79 days

Total

11

Last Release

3589d ago

Major Versions

1.0.x-dev → 2.0.02015-03-18

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

v2.2.1 → v3.0.02016-07-14

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/cc86898863e8b4ab04e11e787c662480a6ca08628df871ecfe8015e3277746b8?d=identicon)[waisir](/maintainers/waisir)

---

Top Contributors

[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (17 commits)")[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (6 commits)")[![lokielse](https://avatars.githubusercontent.com/u/1573211?v=4)](https://github.com/lokielse "lokielse (5 commits)")

---

Tags

laravelpaymentslaravel5omnipay

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/lokielse-laravel-omnipay/health.svg)](https://phpackages.com/packages/lokielse-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)
