PHPackages                             yexk/paystack-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. [Payment Processing](/categories/payments)
4. /
5. yexk/paystack-php

ActiveLibrary[Payment Processing](/categories/payments)

yexk/paystack-php
=================

Paystack Library for PHP

1.0.0(3y ago)0145MITPHPPHP &gt;=5.5

Since Jun 2Pushed 3y agoCompare

[ Source](https://github.com/yexk/paystack-php)[ Packagist](https://packagist.org/packages/yexk/paystack-php)[ Docs](https://github.com/yexk/paystack-php)[ RSS](/packages/yexk-paystack-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Paystack PHP
============

[](#paystack-php)

[![Build Status](https://camo.githubusercontent.com/6b1190f3dc5a26d7a77c96a8a58278abae88ad46f474f41fbb3bcffabe8c607c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f706572666563746d616b2f706179737461636b2d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/perfectmak/paystack-php)

Paystack PHP is a library for using the [Paystack](http://paystack.com) API from PHP.

While there are other PHP libraries for Paystack, this library is designed to make it less cumbersome to implement a payment flow on the Paystack payment platform.

Installation
------------

[](#installation)

To install using composer

```
composer install putianxin/paystack-php

```

Usage
-----

[](#usage)

First you initialize the library with your secret key

```
\Paystack\Paystack::init('__secret_key_here__');
```

### Transaction

[](#transaction)

#### Initialize a transaction

[](#initialize-a-transaction)

```
    $payment = \Paystack\Transaction::initialize([
        'email' => 'jame@gosling.com',
        'amount' => '3000'
    ]);
```

### Customer

[](#customer)

#### Create Customer

[](#create-customer)

```
    $customer = \Paystack\Customer::create([
        'email' => 'google@gosling.com',
        'first_name' => 'Perfect',
        'last_name' => 'Makanju',
        'phone' => 'xxxxxxx'
    ]);

    echo 'Customer\'s first name is: '.$customer->first_name;
```

Todo
----

[](#todo)

This library is far from complete and not yet stable. So I don't advice using it yet.

- Finish up all the resources
- Tests for each Resource
- Fix travis build script

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

1444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19749521?v=4)[Yexk\_M](/maintainers/yexk)[@yexk](https://github.com/yexk)

---

Top Contributors

[![perfectmak](https://avatars.githubusercontent.com/u/3120013?v=4)](https://github.com/perfectmak "perfectmak (10 commits)")[![putianxin](https://avatars.githubusercontent.com/u/11360560?v=4)](https://github.com/putianxin "putianxin (4 commits)")[![yexk](https://avatars.githubusercontent.com/u/19749521?v=4)](https://github.com/yexk "yexk (3 commits)")

---

Tags

paymentpaystack

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yexk-paystack-php/health.svg)

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

###  Alternatives

[matscode/paystack

This package is for communicating with PAYSTACK API

1719.7k](/packages/matscode-paystack)[digikraaft/laravel-paystack-webhooks

Handle Paystack webhooks in a Laravel application

177.5k1](/packages/digikraaft-laravel-paystack-webhooks)[digikraaft/laravel-paystack-subscription

A simple interface to Paystack's subscription billing services. It takes the pain of implementing subscription management off you.

231.2k](/packages/digikraaft-laravel-paystack-subscription)

PHPackages © 2026

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