Download the PHP package elmmac/elmmac-paystack-sdk without Composer
On this page you can find all versions of the php package elmmac/elmmac-paystack-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elmmac/elmmac-paystack-sdk
More information about elmmac/elmmac-paystack-sdk
Files in elmmac/elmmac-paystack-sdk
Package elmmac-paystack-sdk
Short Description Lightweight procedural Paystack SDK by ElmMac with init, callback and webhook helpers.
License MIT
Informations about the package elmmac-paystack-sdk
ElmMacPaystack – PHP Paystack SDK
ElmMacPaystack is a lightweight PHP SDK for integrating Paystack into classic/procedural PHP projects. It handles initialize, callback and webhook flows, and logs full request/response payloads into a generic elmmacpaystackpayments table.
Features
- Simple PHP class wrapper around Paystack REST API
- Initialize payments with custom metadata
- Callback handler for success/failed payments
- Optional webhook listener with signature verification
- Request / response payload logging for debugging & analytics
Requirements
- PHP 7.4+ (or higher)
- cURL extension enabled
- MySQL / MariaDB (for the example payments table)
- A Paystack account with secret & public keys
Installation
- Copy
src/ElmMacPayStack.phpinto your project (for example into asrc/orlib/folder). -
Include the class in your bootstrap / init script:
- Create the
elmmacpaystackpaymentstable using the SQL provided indatabase_table.sql(or adapt it to your schema).
Quick start
Then in your callback script you can:
(See the example files in elmmacpaystack/ for init, callback, and webhook handlers.)
Roadmap
- More helper methods (verify, refund, list transactions)
- Framework-agnostic middleware snippets (Laravel, Symfony, etc.)
- Better error handling & typed responses
Contributing
Pull requests and issues are welcome. Please open an issue first if you plan a bigger change so we can discuss direction.
License
This project is open-source. You can use the MIT license below or choose a different license that fits your needs.
🙏 Credits
Developed with 🚀 by ElmMac Pty Ltd\
Maintained by @ElmMac - Misael Cruise Mutege — WhatsApp: +27786411181 Durban, South Africa\
Digital Dev | Hustler Mode: ON 💼
All versions of elmmac-paystack-sdk with dependencies
ext-curl Version *
ext-json Version *