Installation
Install the SDK using Composer:The SDK requires PHP 8.0 or higher and Composer for dependency management.
Quick Start
Initialize the client and create a checkout session:Core Features
PSR-4 Compliant
Follows PHP Standards Recommendations for modern PHP development
Modern PHP
Built for PHP 8+ with type declarations and strict types
Extensive Testing
Comprehensive test coverage for reliability and stability
Exception Handling
Clear exception types for different error scenarios
Configuration
Retry Configuration
Configure automatic retry behavior:Common Operations
Create a Checkout Session
Generate a checkout session:Manage Customers
Create and retrieve customer information:Handle Subscriptions
Create and manage recurring subscriptions:Pagination
Work with paginated list responses:Error Handling
Handle various API exceptions:Advanced Usage
Undocumented Endpoints
Make requests to undocumented endpoints:Undocumented Parameters
Send undocumented parameters:Framework Integration
Laravel
Create a service for Laravel applications:config/services.php:
Symfony
Create a service in Symfony:config/services.yaml:
Resources
GitHub Repository
View source code and contribute
API Reference
Complete API documentation
Discord Community
Get help and connect with developers
Report Issues
Report bugs or request features
Support
Need help with the PHP SDK?- Discord: Join our community server for real-time support
- Email: Contact us at support@dodopayments.com
- GitHub: Open an issue on the repository