PHPackages                             ezeasorekene/credo-payments - 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. ezeasorekene/credo-payments

ActiveLibrary[API Development](/categories/api)

ezeasorekene/credo-payments
===========================

This package is for communicating with credocentral.com and credodemo.com API

v2.0.0(2y ago)049MITPHP

Since Apr 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ezeasorekene/credo-payments)[ Packagist](https://packagist.org/packages/ezeasorekene/credo-payments)[ RSS](/packages/ezeasorekene-credo-payments/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Credo Payments
==============

[](#credo-payments)

This package is for communicating with credocentral.com and credodemo.com API

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

[](#getting-started)

Install the package using composer.

Run `composer require ezeasorekene/credo-payments`

### Define your api keys

[](#define-your-api-keys)

Define your `$apiKeys` variable as an array with the public and private keys. You should get the keys from environment variables. Also define `CREDO_MODE` environment key with parameters `DEMO | LIVE`

```
    $apiKeys = [
        'publicKey' => getenv("CREDO_MODE") == 'LIVE' ? getenv("CREDO_LIVE_PUBLIC_KEY") : getenv("CREDO_TEST_PUBLIC_KEY"),
        'secretKey' => getenv("CREDO_MODE") == 'LIVE' ? getenv("CREDO_LIVE_SECRET_KEY") : getenv("CREDO_TEST_SECRET_KEY"),
    ];
```

### Instantiating Transaction

[](#instantiating-transaction)

```
   $credo = new CredoPay( $apiKeys, getenv("CREDO_MODE") );
```

Set data to post using array. Please note that the `serviceCode` is an optional field. It is used when you want to split payments between different accounts

```
        $credodata = [
            'reference' => uniqid(),
            'amount' => 20000, //in kobo
            'bearer' => 0,
            'callbackUrl' => 'http://example.com/callback/credo',
            'currency' => 'NGN',
            'customerFirstName' => 'Credo',
            'customerLastName' => 'Package',
            'customerPhoneNumber' => '234080111111111',
            'email' => 'credotest@gmail.com',
            'channels' => array('card', 'bank'),
            'serviceCode' => 'XXXXXXXXXXX',
            "metadata" => [
                "customFields" => [
                    [
                        'display_name' => 'Custom Field Display 1',
                        'variable_name' => 'Custom Field Variable 1',
                        'value' => 'Custom Field Value 1'
                    ]
                ]
            ],
        ];
```

Response is a JSON encoded object. So to decode, perform a `json_decode`

```
    $response = json_decode($credo->initialize($credodata));
```

### Verifying Transaction

[](#verifying-transaction)

```
    $credo = new CredoPay( $apiKeys, getenv("CREDO_MODE") );
    $verify = json_decode($credo->verify($reference));
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~129 days

Total

4

Last Release

787d ago

Major Versions

v1.1.0 → v2.0.02024-05-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b46fcc0683d431ddc5e58b130d6b2eed735f6a80de633c7bfe17a1a2effe190?d=identicon)[ezeasorekene](/maintainers/ezeasorekene)

---

Top Contributors

[![ezeasorekene](https://avatars.githubusercontent.com/u/16192931?v=4)](https://github.com/ezeasorekene "ezeasorekene (6 commits)")

### Embed Badge

![Health badge](/badges/ezeasorekene-credo-payments/health.svg)

```
[![Health](https://phpackages.com/badges/ezeasorekene-credo-payments/health.svg)](https://phpackages.com/packages/ezeasorekene-credo-payments)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[stymiee/authnetjson

Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.

19604.4k](/packages/stymiee-authnetjson)[michaeldrennen/geonames

A Laravel (php) package that interfaces with the geolocation services on geonames.org.

9514.1k](/packages/michaeldrennen-geonames)[christianruhstaller/bexio-api-php-client

Client library for bexio API

1136.8k](/packages/christianruhstaller-bexio-api-php-client)[luyadev/luya-headless

LUYA headless API client

1025.7k3](/packages/luyadev-luya-headless)[mrteye/gdax

API for GDAX A service provided by coinbase. (Unofficial)

205.3k](/packages/mrteye-gdax)

PHPackages © 2026

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