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

AbandonedLibrary[API Development](/categories/api)

badcow/eway
===========

A PHP library interacting with eWay API.

v0.2(11y ago)91.6k4MITPHP

Since Mar 23Pushed 11y ago2 watchersCompare

[ Source](https://github.com/samuelwilliams/eWay-PHP-API)[ Packagist](https://packagist.org/packages/badcow/eway)[ RSS](/packages/badcow-eway/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

eWay PHP API
============

[](#eway-php-api)

This class is designed to make eWay payments very easy. Details about the API can be found on the [eWay website](http://eway.com.au/developers/api/stored-(xml).html)

Example usage
-------------

[](#example-usage)

The example below utilises the eWay test gateway

```
require_once __DIR__ . '/eWay/eWay.php';

use Badcow\eWay\eWay;

$eWay = new eWay('REAL_TIME_CVN', TRUE);

$eWay
    ->setCustomerID('87654321')
    ->setCardNumber('4444333322221111')
    ->setCardHoldersName('John Smith')
    ->setPaymentAmount(1.00)
    ->setCardExpiry('08', '09')
    ->setCVN('123')
    ->setCustomerFirstName('Firstname')
    ->setCustomerLastName('Lastname')
    ->setCustomerEmail('name@xyz.com.au')
    ->setCustomerAddress('123 Someplace Street, Somewhere ACT')
    ->setCustomerPostcode('2609')
    ->setCustomerInvoiceReference('INV120394')
    ->setCustomerInvoiceDescription('Testing')
    ->setCustomerTransactionReference('4230')
    ->setOption1('Option Number One')
    ->setOption2('Option Number Two')
    ->setOption3('Option Number Three')
    ;

$eWay->pay();

```

Each setter method will return the eway class allowing for chaining.

License
-------

[](#license)

This software is free to use and distribute. Please see [the license file](https://github.com/samuelwilliams/eWay-PHP-API/blob/master/LICENSE).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

4120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dd5f6a3443d2ee5f0121397886a0141ba4f462d1a9686ba613de2815726b62f?d=identicon)[samuelwilliams](/maintainers/samuelwilliams)

---

Top Contributors

[![samuelwilliams](https://avatars.githubusercontent.com/u/806430?v=4)](https://github.com/samuelwilliams "samuelwilliams (25 commits)")[![johandouma](https://avatars.githubusercontent.com/u/9311?v=4)](https://github.com/johandouma "johandouma (1 commits)")[![levymetal](https://avatars.githubusercontent.com/u/646278?v=4)](https://github.com/levymetal "levymetal (1 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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