Download the PHP package starfolksoftware/paystack-php without Composer
On this page you can find all versions of the php package starfolksoftware/paystack-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download starfolksoftware/paystack-php
More information about starfolksoftware/paystack-php
Files in starfolksoftware/paystack-php
Package paystack-php
Short Description A PHP library to conveniently access the Paystack API from applications written in the PHP language.
License MIT
Informations about the package paystack-php
Paystack PHP SDK
A modern, developer-friendly PHP SDK for the Paystack API. This library provides convenient access to Paystack's payment infrastructure from applications written in PHP. It includes a comprehensive set of classes for all API resources with full type safety and automatic parameter validation.
Features
- ✅ Complete API Coverage - All Paystack API endpoints supported
- ✅ Type Safety - Full PHP 8.2+ type declarations
- ✅ Parameter Validation - Automatic validation of API parameters
- ✅ PSR-18 HTTP Client - Compatible with any PSR-18 HTTP client
- ✅ Comprehensive Examples - Detailed usage examples for all features
- ✅ Exception Handling - Detailed error responses and exception handling
- ✅ Modern PHP - Built for PHP 8.2+ with modern coding standards
Quick Links
- Getting Started Guide
- API Reference
- Examples
- Advanced Usage
- Troubleshooting
- Upgrade Guide (v1.x → v2.x)
Table of Contents
- Requirements
- Installation
- Authentication
- Quick Start
- Available Resources
- Usage Examples
- Transactions
- Customers
- Payment Requests
- Subscriptions
- Error Handling
- Testing
- Contributing
- Support
Requirements
- PHP 8.2 or higher
- PSR-18 HTTP Client (any implementation)
- Composer for dependency management
Installation
Using Composer
Install the SDK using Composer:
Install HTTP Client
This package requires a PSR-18 HTTP client. If you don't have one installed, we recommend Guzzle:
Alternatively, you can use any PSR-18 compatible client:
Autoloading
Include Composer's autoloader in your project:
Authentication
Get your API keys from your Paystack Dashboard:
- Test Secret Key:
sk_test_...(for development) - Live Secret Key:
sk_live_...(for production)
⚠️ Important: Never expose your secret key in client-side code or public repositories.
Quick Start
Payment Requests
Subscriptions
Error Handling
The SDK provides comprehensive error handling with detailed error messages:
Configuration Options
You can customize the client behavior with various configuration options:
Webhook Handling
Testing
Run the test suite using PHPUnit:
Testing Your Integration
Use Paystack's test mode to test your integration:
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
Coding Standards
This project follows PSR-12 coding standards. Please ensure your code adheres to these standards:
Support
- Documentation: Getting Started
- Examples: Check the examples directory
- Issues: GitHub Issues
- Email: [email protected]
- Paystack Documentation: Official API Docs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
If you discover a security vulnerability, please send an email to [email protected]. All security vulnerabilities will be promptly addressed.
License
The MIT License (MIT). Please see License File for more information.
Made with ❤️ by Starfolk Software
All versions of paystack-php with dependencies
laminas/laminas-diactoros Version ^3.5.0
php-http/client-common Version ^2.3
php-http/discovery Version ^1.14.1
psr/http-client Version ^1.0.1
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0.1
symfony/http-client Version ^7.3
symfony/options-resolver Version ^6.2