Skip to content

The Paystack PHP library provides convenient access to the Paystack API.

Notifications You must be signed in to change notification settings

starfolksoftware/paystack-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paystack PHP bindings

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

The Paystack PHP library provides convenient access to the Paystack API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Paystack API.

Requirements

PHP 8.0 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require starfolksoftware/paystack-php

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Dependencies

Any package that implements psr/http-client-implementation

Getting Started

Simple usage looks like:

<?php

require_once "vendor/autoload.php";

use StarfolkSoftware\Paystack\Client as PaystackClient;

$paystack = new PaystackClient([
    'secretKey' => '*******',
]);

$response = $paystack
    ->transactions
    ->all([]);

var_dump($response['data'][0]);

\\ dumps
array(21) { ... }
...

Available endpoints

  • Customer
  • Invoice
  • Plan
  • Subscription
  • Transaction

Documentation

See the PHP API docs.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Road Map

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

The Paystack PHP library provides convenient access to the Paystack API.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages