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(5y ago)132PHPPHP &gt;=5.4.0

Since Jul 3Pushed 10mo 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 1mo ago

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

29

—

LowBetter than 59% of packages

Maintenance39

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

2145d 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

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[aktive_merchant/aktive_merchant

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

15036.8k](/packages/aktive-merchant-aktive-merchant)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)

PHPackages © 2026

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