PHPackages                             eway/eway-rapid-php - 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. eway/eway-rapid-php

ActiveLibrary

eway/eway-rapid-php
===================

Eway Rapid PHP library

2.0.0(1y ago)141.2M↓26.4%23[8 issues](https://github.com/eWAYPayment/eway-rapid-php/issues)[2 PRs](https://github.com/eWAYPayment/eway-rapid-php/pulls)5MITPHPPHP &gt;=7.4.0CI passing

Since Aug 11Pushed 1y ago9 watchersCompare

[ Source](https://github.com/eWAYPayment/eway-rapid-php)[ Packagist](https://packagist.org/packages/eway/eway-rapid-php)[ Docs](https://www.eway.com.au)[ RSS](/packages/eway-eway-rapid-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (5)

Eway Rapid PHP Library
======================

[](#eway-rapid-php-library)

[![Github Workflows](https://github.com/eWAYPayment/eway-rapid-php/actions/workflows/phpunit.yml/badge.svg)](https://github.com/eWAYPayment/eway-rapid-php/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/dd0bb3f2e128eda91cd03536e31389dd652b834d5c6c259533dd81442bfadad1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657761792f657761792d72617069642d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eway/eway-rapid-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A PHP library to integrate with Eway's Rapid Payment API.

Sign up with Eway at:

- Australia:
- New Zealand:
- UK:
- Hong Kong:
- Malaysia:

For testing, get a free Eway Partner account:

Install
-------

[](#install)

This library requires PHP version 7.4.0 or greater, with the curl, json and openssl extensions.

### Using Composer

[](#using-composer)

The Eway PHP SDK can be install via [Composer](https://getcomposer.org/) - this is the recommended method

```
$ composer require eway/eway-rapid-php
```

Then use Composer's autoload to include the library:

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

### Manual

[](#manual)

The Eway PHP SDK can also be downloaded and added without Composer:

1. Download the [latest zip](https://github.com/eWAYPayment/eway-rapid-php/archive/master.zip) (or `git clone` this repository)
2. Unzip the zip into your project - for example into a `lib` directory
3. Include the Eway SDK:

```
require_once 'lib/eway-rapid-php-master/include_eway.php';
```

Usage
-----

[](#usage)

See the [Eway Rapid API Reference](https://eway.io/api-v3/?php) for usage details.

A simple Direct payment:

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

$apiKey = 'YOUR-API-KEY';
$apiPassword = 'YOUR-API-PASSWORD';
$apiEndpoint = \Eway\Rapid\Client::MODE_SANDBOX;
$client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint);

$transaction = [
    'Customer' => [
        'CardDetails' => [
            'Name' => 'John Smith',
            'Number' => '4444333322221111',
            'ExpiryMonth' => '12',
            'ExpiryYear' => '25',
            'CVN' => '123',
        ]
    ],
    'Payment' => [
        'TotalAmount' => 1000,
    ],
    'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
];

$response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
if ($response->TransactionStatus) {
    echo 'Payment successful! ID: '.$response->TransactionID;
}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Tests are written with [PHPUnit](https://phpunit.de/). They can be run using Composer:

```
$ composer run test-unit # Run unit tests
$ composer run test-integration # Run integration tests
```

This library follows PSR2 coding standards, run this command to check:

```
$ composer run phpcs
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~192 days

Recently: every ~287 days

Total

19

Last Release

474d ago

Major Versions

1.4.2 → 2.0.02025-01-30

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/719ffa0974111eee1d7f6fd604dec6071f60e59aff238262a4ae55cf61a25951?d=identicon)[eway](/maintainers/eway)

---

Top Contributors

[![incarnate](https://avatars.githubusercontent.com/u/1253491?v=4)](https://github.com/incarnate "incarnate (36 commits)")[![mage2-au](https://avatars.githubusercontent.com/u/75344636?v=4)](https://github.com/mage2-au "mage2-au (7 commits)")[![can-nguyen](https://avatars.githubusercontent.com/u/77779365?v=4)](https://github.com/can-nguyen "can-nguyen (6 commits)")[![huytq-smartosc](https://avatars.githubusercontent.com/u/77783904?v=4)](https://github.com/huytq-smartosc "huytq-smartosc (5 commits)")[![ppoloskov](https://avatars.githubusercontent.com/u/11026246?v=4)](https://github.com/ppoloskov "ppoloskov (2 commits)")[![JoshSmithCode](https://avatars.githubusercontent.com/u/5952520?v=4)](https://github.com/JoshSmithCode "JoshSmithCode (1 commits)")[![juuce](https://avatars.githubusercontent.com/u/8197867?v=4)](https://github.com/juuce "juuce (1 commits)")[![iandaleygp](https://avatars.githubusercontent.com/u/78891312?v=4)](https://github.com/iandaleygp "iandaleygp (1 commits)")[![Bamuel](https://avatars.githubusercontent.com/u/6744113?v=4)](https://github.com/Bamuel "Bamuel (1 commits)")

---

Tags

ewaypayment processingpaymentsewayrapid

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/eway-eway-rapid-php/health.svg)

```
[![Health](https://phpackages.com/badges/eway-eway-rapid-php/health.svg)](https://phpackages.com/packages/eway-eway-rapid-php)
```

###  Alternatives

[paymentwall/paymentwall-php

Paymentwall PHP Library. Paymentwall is the leading digital payments platform for globally monetizing digital goods and services.

86797.2k5](/packages/paymentwall-paymentwall-php)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[aktive_merchant/aktive_merchant

Aktive-Merchant provides a common interface to process payments using multiple gateways.

15036.8k](/packages/aktive-merchant-aktive-merchant)

PHPackages © 2026

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