PHPackages                             hmimeee/revolut - 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. [API Development](/categories/api)
4. /
5. hmimeee/revolut

ActiveLibrary[API Development](/categories/api)

hmimeee/revolut
===============

A package to integrate Revolut payment gateway. Revolut is a British financial technology company that offers banking services, but as of December 2022 does not have a UK banking licence.

1.0(3y ago)016MITPHPPHP &gt;=5.6.0

Since Feb 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hmimeee/revolut)[ Packagist](https://packagist.org/packages/hmimeee/revolut)[ Docs](https://revolut.com/)[ RSS](/packages/hmimeee-revolut/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Revolut Payment Gateway
=======================

[](#revolut-payment-gateway)

A package to integrate Revolut payment gateway. Revolut is a British financial technology company that offers banking services, but as of December 2022 does not have a UK banking licence.

Read the documentation below to integrate the library for your PHP Application.

Requirements
------------

[](#requirements)

PHP 5.6.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require hmimeee/revolut
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer
- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$revolut = getRevolut([
    'env' => 'sandbox', //or, live
    'key' => 'Your marchant secret key here'
]);
$response = $revolut->createOrder([
    'amount' => 1210, //The amount must be the smallest currency unit like (from $12.10 to 1210)
    'currency' => 'GBP',
    'description' => 'An example order', //Can skip it as it's optional.
    'name' => 'John Doe', //Can skip it as it's optional.
    'email' => 'email@example.com', //Can skip it as it's optional.
]);

if ($response['status']) {
    $orderId = $response['data']->id; //Keep the Order ID to verify the payment in the Webhook Endpoint.

    header("location:" . $response['data']->checkout_url);
} else {
    echo $response['message'];
}
```

Webhook Endpoint Preparing
--------------------------

[](#webhook-endpoint-preparing)

A Post request will be sent from Revolut along with the data below:

```
{
  "event": "ORDER_COMPLETED",
  "order_id": "9fc01989-3f61-4484-a5d9-ffe768531be9",
  "merchant_order_ext_ref": "Test #3928"
}
```

Now match with the Order ID and take your further action like the code below:

```
if($_POST['event'] == 'ORDER_COMPLETED') {
  //Match that previous $orderId with $_POST['order_id'], and take proper action.
}
```

💥 Boom! You've done everything.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

1243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dab2a7f1a1adf6d188e763517a14da22b20be348827cf39f01483304ddf4bd?d=identicon)[hmimeee](/maintainers/hmimeee)

---

Top Contributors

[![hmimeee](https://avatars.githubusercontent.com/u/63141574?v=4)](https://github.com/hmimeee "hmimeee (13 commits)")

---

Tags

apipayment gatewayrevolut

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hmimeee-revolut/health.svg)

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

###  Alternatives

[coinremitterphp/coinremitter-php

Official PHP SDK for coinremitter cryptocurrency payment gateway

142.4k](/packages/coinremitterphp-coinremitter-php)

PHPackages © 2026

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