Download the PHP package iamolayemi/laravel-paystack without Composer
On this page you can find all versions of the php package iamolayemi/laravel-paystack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iamolayemi/laravel-paystack
More information about iamolayemi/laravel-paystack
Files in iamolayemi/laravel-paystack
Package laravel-paystack
Short Description A laravel package for working with paystack api
License MIT
Homepage https://github.com/iamolayemi/laravel-paystack
Informations about the package laravel-paystack
Laravel Paystack
A comprehensive Laravel package for seamless integration with the Paystack payment gateway. This package provides an expressive and convenient way to interact with the Paystack API within your Laravel application.
โจ Features
- ๐ Fluent API Interface - Clean and intuitive method chaining
- ๐ก๏ธ Comprehensive Error Handling - Custom exception classes for different error types
- ๐ Security First - Built-in validation and security checks
- ๐ Full API Coverage - Support for all Paystack API endpoints
- ๐งช Extensive Testing - High test coverage with mock support
- ๐ Excellent Documentation - Comprehensive guides and examples
- ๐ง Developer Friendly - Easy setup and configuration
- โก Performance Optimized - Efficient HTTP client with retry logic
- ๐ Multi-Currency Support - NGN, GHS, USD, and more
- ๐ Webhook Support - Built-in webhook handling and verification
๐ Requirements
- PHP: ^8.1|^8.2|^8.3
- Laravel: ^9.0|^10.0|^11.0
- Composer: ^2.0
๐ Installation
You can install the package via Composer:
The package will automatically register itself if you're using Laravel's auto-discovery feature.
โ๏ธ Configuration
Environment Variables
Add your Paystack credentials to your .env
file:
Publishing Configuration (Optional)
๐ Quick Start
Basic Usage
Using Helper Function
Getting Specific Data
Verifying Transactions
๐ง Available Endpoints
The package provides access to all Paystack API endpoints:
Transactions
Customers
Transfers
Plans & Subscriptions
And Many More...
- Banks: List banks, resolve account numbers
- Countries: List countries and states
- Invoices: Create and manage invoices
- Products: Product management
- Refunds: Process refunds
- Settlements: Settlement management
- Splits: Split payment configuration
- Sub-accounts: Sub-account management
๐ก๏ธ Error Handling
The package provides comprehensive error handling with custom exception classes:
๐งช Testing
Running Tests
Mock Testing
๐ Documentation
For detailed documentation, visit https://laravel-paystack.netlify.app
Additional Resources
- Advanced Usage Guide
- API Reference
- Testing Guide
- Security Best Practices
๐ง Development
Prerequisites
- PHP: ^8.1|^8.2|^8.3
- Composer: ^2.0
- Node.js: ^16.0 (for documentation)
Quick Setup
Available Commands
The project uses a comprehensive Makefile for development tasks:
Testing Commands
Code Quality Commands
Security & Validation
CI/CD Commands
Maintenance Commands
Documentation Commands
Docker Commands (Optional)
Release Commands
Development Workflow
- Setup:
make dev-setup
- Make changes: Edit code
- Test:
make test
- Check quality:
make analyse
- Fix style:
make fix
- Full validation:
make ci
- Commit:
git commit -m "Your message"
- Push:
git push
Code Quality Standards
The project enforces high code quality standards:
- PHPStan Level 8: Strict static analysis
- Laravel Pint: PSR-12 coding standards
- PHPUnit: 100% test coverage target
- Security Checker: Vulnerability scanning
Testing Strategy
Static Analysis
Code Style
Troubleshooting
IDE Setup
For the best development experience:
- PHPStorm/IntelliJ: Enable PHPStan integration
- VS Code: Install PHP extensions
- EditorConfig: Project includes
.editorconfig
- PHP CS Fixer: Configuration in
.php-cs-fixer.php
Pre-commit Hooks
Consider setting up pre-commit hooks:
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
- Fork the repository
- Clone your fork
- Install dependencies:
composer install
- Run tests:
make test
- Make your changes
- Ensure all tests pass:
make ci
- Submit a pull request
๐ Bug Reports
If you discover any bugs, please create an issue on GitHub.
๐ Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
๐ License
The MIT License (MIT). Please see License File for more information.
๐ Credits
- Olayemi Olatayo - Original author
- All Contributors - Community contributors
- Paystack - Payment gateway provider