PHPackages                             alexasomba/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. [HTTP &amp; Networking](/categories/http)
4. /
5. alexasomba/paystack-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

alexasomba/paystack-php
=======================

Paystack API client for PHP

1.3.0(1mo ago)10unlicensePHPPHP ^8.1CI failing

Since Dec 15Pushed 1w agoCompare

[ Source](https://github.com/alexasomba/paystack-php)[ Packagist](https://packagist.org/packages/alexasomba/paystack-php)[ Docs](https://openapi-generator.tech)[ RSS](/packages/alexasomba-paystack-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

Paystack
========

[](#paystack)

PHP client for the Paystack API, generated from the Paystack OpenAPI spec in this repository.

Why this SDK
------------

[](#why-this-sdk)

- Generated from the Paystack OpenAPI source of truth in this repo
- Includes opt-in helpers for timeouts, retries, idempotency, and structured API errors
- Keeps generated models and API classes aligned with the SDK generation spec

Requirements
------------

[](#requirements)

PHP 8.1 and later.

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

[](#installation)

```
composer require alexasomba/paystack
```

Or from source:

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/alexasomba/paystack-php.git"
    }
  ],
  "require": {
    "alexasomba/paystack": "*"
  }
}
```

Authenticate requests with your Paystack secret key through the generated configuration object:

```
$config = Configuration::getDefaultConfiguration()
    ->setAccessToken($_ENV['PAYSTACK_SECRET_KEY']);
```

Quick Start
-----------

[](#quick-start)

```
