PHPackages                             zone/moneris-api - 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. [Payment Processing](/categories/payments)
4. /
5. zone/moneris-api

ActiveLibrary[Payment Processing](/categories/payments)

zone/moneris-api
================

Payments with Moneris

v1.0.0(6y ago)133PHPPHP &gt;=5.4.0

Since Jul 3Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Botnary/moneris-api)[ Packagist](https://packagist.org/packages/zone/moneris-api)[ RSS](/packages/zone-moneris-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Simple Moneris gateway.
=======================

[](#simple-moneris-gateway)

Usage

```
require_once 'vendor/autoload.php';
use Zone\PaymentGateway;
use Zone\PaymentGateway\Helper\CreditCard;
use Zone\PaymentGateway\Helper\Transaction;
use Zone\PaymentGateway\Integration\Moneris;
use Zone\PaymentGateway\Response\CreateCharge;
use Zone\PaymentGateway\Response\ValidateCard;

$moneris = new Moneris();
$moneris->setCredentials('store5', 'yesguy'); //this are the moneris demo credentials
$moneris->getApi()->setTestMode(true); // using test environment
$transaction = new Transaction();
$transaction->setTransactionId(sprintf("T%'.020d\n", 8));
$transaction->setTransactionDate(new DateTime('now'));
$transaction->setCurrency('CAD');
$transaction->setAmount('10.00');
$transaction->setComment('test transaction');

$card = new CreditCard();
$card->setCardNumber('4242424242424242');
$card->setCardExpiry('08', '12');
$card->setCardCVV('198');
$card->setAddress1('201');
$card->setAddress2('Michigan Ave');
$card->setCity('Montreal');
$card->setEmailAddress('test@host.com');
$card->setCountry('Canada');
$card->setZipCode('M1M1M1');

$moneris->validateCard($card, function (ValidateCard $response) use ($card, $transaction, $moneris) {
    //card is valid, continue with the charge.
    $moneris->createCharge($card, $transaction, function (CreateCharge $response) {
        //success charge
    }, function (CreateCharge $response) {
        //fail charge
    });
}, function (ValidateCard $response) {
    //card is invalid
});

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2190d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/143590?v=4)[Constantin Botnari](/maintainers/Botnary)[@Botnary](https://github.com/Botnary)

---

Top Contributors

[![Botnary](https://avatars.githubusercontent.com/u/143590?v=4)](https://github.com/Botnary "Botnary (2 commits)")

---

Tags

moneris

### Embed Badge

![Health badge](/badges/zone-moneris-api/health.svg)

```
[![Health](https://phpackages.com/badges/zone-moneris-api/health.svg)](https://phpackages.com/packages/zone-moneris-api)
```

###  Alternatives

[aktive_merchant/aktive_merchant

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

15036.8k](/packages/aktive-merchant-aktive-merchant)[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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