https://github.com/musheabdulhakim/paystack
Paystack API Library For PHP and Laravel applications.
https://github.com/musheabdulhakim/paystack
payment-gateway paystack paystack-api paystack-library paystack-sdk php php8 sdk
Last synced: 9 months ago
JSON representation
Paystack API Library For PHP and Laravel applications.
- Host: GitHub
- URL: https://github.com/musheabdulhakim/paystack
- Owner: MusheAbdulHakim
- Created: 2023-01-06T05:21:55.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-07T05:26:36.000Z (12 months ago)
- Last Synced: 2025-03-31T08:12:04.953Z (10 months ago)
- Topics: payment-gateway, paystack, paystack-api, paystack-library, paystack-sdk, php, php8, sdk
- Language: PHP
- Homepage: https://musheabdulhakim.github.io/Paystack/
- Size: 335 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
------
This package provides a wonderful **PHP** client that allows you to interact
with [Paystack Api](https://paystack.com/docs)
**This SDK** is a PHP & Laravel Package, (Designed to help working with paystack api easier and faster).
## Requirement
> **Requires [Composer](https://getcomposer.org/)**
> **Requires [PHP 8.2+](https://php.net/releases/)**
```bash
composer require musheabdulhakim/paystack
```
## Basic usage
```php
use MusheAbdulHakim\Paystack\Paystack;
$paystack = Paystack::client('your-api-key');
//or
$paystack = Paystack::client('secret-api-key','https://api.paystack.co');
```
### Example
```php
$customers = $paystack->customer()->list();
$initialize_transaction = $paystack->transaction()->initialize([
//
]);
```
##### Refer to the documentation [here](https://musheabdulhakim.github.io/Paystack/)
### Configuration
```php
'PAYSTACK_API_URI' => 'https://api.paystack.co',
'PAYSTACK_SECRET_KEY' => '',
'PAYSTACK_PUBLIC_KEY' => '',
```
## Contribution
๐งน Keep a modern codebase with **php-cs-fixer**:
```bash
composer lint
```
๐ Run the entire test suite:
```bash
composer test
```
Report all your issues [Here](https://github.com/MusheAbdulHakim/Paystack/issues)
All your pull requests are welcome :).