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

ActiveLibrary

royalcms/omnipay
================

Integerates Omnipay with Royalcms and provides an easy configuration.

v5.0.0(6y ago)05MITPHPPHP &gt;=5.4.0

Since Sep 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/royalcms/royalcms-omnipay)[ Packagist](https://packagist.org/packages/royalcms/omnipay)[ Docs](http://royalcms.cn)[ RSS](/packages/royalcms-omnipay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Omnipay for Royalcms
====================

[](#omnipay-for-royalcms)

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

### Usage

[](#usage)

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

$card = RC_Omnipay::creditCard($cardInput);
$response = RC_Omnipay::purchase([
	'amount'    => '100.00',
	'returnUrl' => 'http://royalcms.cn/payment/return',
	'cancelUrl' => 'http://royalcms.cn/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.

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

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

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

In addition you can take an instance of the gateway.

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c99ee5ba2eb7de81fe449d469bb146116bab62127ea2970f7a612a48e6444a5?d=identicon)[royalwang](/maintainers/royalwang)

---

Top Contributors

[![royalwang](https://avatars.githubusercontent.com/u/1106638?v=4)](https://github.com/royalwang "royalwang (1 commits)")

---

Tags

paymentsomnipayroyalcms

### Embed Badge

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

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

###  Alternatives

[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

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

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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