Download the PHP package khalti/php-sdk without Composer
On this page you can find all versions of the php package khalti/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-sdk
Khalti PHP SDK v1.1.1
A simple and powerful PHP SDK for integrating Khalti Payment Gateway Web Checkout (KPG-2) API into your PHP applications.
🚀 Quick Start
Installation
Basic Usage
Verify Payment
🔧 Configuration
Sandbox Setup
-
Get Sandbox Credentials:
- Visit test-admin.khalti.com
- Sign up for a merchant account
- Use OTP:
987654for sandbox login - Get your
live_secret_keyfrom the dashboard
-
Update Your Code:
- Test Credentials:
- Phone:
9800000001 - MPIN:
1111 - OTP:
987654
- Phone:
Production Setup
-
Get Production Credentials:
- Visit admin.khalti.com
- Complete merchant verification
- Get your production
live_secret_key
- Update Your Code:
📝 Complete Example
Payment Initiation (initiate.php)
Payment Verification (verify.php)
🛠️ Advanced Configuration
📋 API Reference
Payment Initiation
Payment Verification
🚨 Error Handling
📦 Requirements
- PHP 7.2 or higher
- cURL extension
- JSON extension
📄 License
MIT License - see LICENSE file for details.
🆘 Support
- Documentation: Khalti API Docs
- Sandbox: test-admin.khalti.com
- Production: admin.khalti.com
- Issues: GitHub Issues
🔄 Changelog
v1.1.1
- Enhanced validation and error handling
- Improved documentation
- Added comprehensive examples
- Fixed API endpoint compatibility
v1.1.0
- Initial release with Web Checkout (KPG-2) support
- Payment initiation and verification
- Comprehensive error handling
- Logging support
All versions of php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package khalti/php-sdk contains the following files
Loading the files please wait ...