musheabdulhakim / paystack
PHP & Laravel package, that makes working with Paystack api a breeze.
Fund package maintenance!
musheabdulhakim
Patreon
paystack.com/pay/musheabdulhakim
Requires
- php: ^8.2|^8.3|^8.4
- illuminate/config: ^11.36
- php-http/discovery: ^1.20
- php-http/multipart-stream-builder: ^1.4
- psr/http-client: ^1.0
- psr/http-client-implementation: *
- psr/http-factory-implementation: *
- psr/http-message: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.65
- guzzlehttp/guzzle: ^7.9
- guzzlehttp/psr7: ^2.7
- mockery/mockery: ^1.6
- pestphp/pest: ^3.7
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-type-coverage: ^3.2
- phpstan/phpstan: ^1.12
- rector/rector: ^1.2
- symfony/var-dumper: ^6.4.0|^7.2.0
This package is auto-updated.
Last update: 2025-01-05 16:48:02 UTC
README
This package provides a wonderful PHP client that allows you to interact with Paystack Api
This SDK is a PHP & Laravel Package, (Designed to help working with paystack api easier and faster).
Requirement
Installation
composer require musheabdulhakim/paystack
Basic usage
use MusheAbdulHakim\Paystack\Paystack; $paystack = Paystack::client('your-api-key'); //or $paystack = Paystack::client('secret-api-key','https://api.paystack.co');
Example
$customers = $paystack->customer()->list(); $initialize_transaction = $paystack->transaction()->initialize([ // ]);
Refer to the documentation here
Configuration
'PAYSTACK_API_URI' => 'https://api.paystack.co', 'PAYSTACK_SECRET_KEY' => '', 'PAYSTACK_PUBLIC_KEY' => '',
Contribution
๐งน Keep a modern codebase with php-cs-fixer:
composer lint
๐ Run the entire test suite:
composer test
Report all your issues Here
All your pull requests are welcome :).