cigalpay / cigalpay-php-sdk
PHP SDK for Cigalpay API Integration
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cigalpay/cigalpay-php-sdk
Requires
- php: >=7.4
README
CigalPay-PHP-SDK is a robust PHP library for integrating the CigalPay cryptocurrency payment gateway. It simplifies handling transactions, creating invoices, fetching payment statuses, and managing crypto payments with a secure and developer-friendly approach.
Features
- Accept multiple cryptocurrencies including BTC, ETH, LTC, DOGE, DASH, SOL, MATIC and BCH.
- Real-time payment tracking.
- Secure API with AES-256 encryption.
- Easy-to-use PHP SDK with Composer support.
Installation
To install the CigalPay PHP SDK using Composer:
composer require cigalpay/cigalpay-php-sdk
Example Usage
$sdk = new \Cigalpay\CigalpaySDK('https://api.cigalpay.icu', 'your-api-key');
$response = $sdk->createPayment(0.05, 'LTC', 'order123', 'https://callback.url/ipn', 'https://callback.url/invoice');
print_r($response);
Available Methods
createPayment(amount, currency, extraId, ipnCallbackUrl, invoiceCallbackUrl)getInvoiceStatus(invoiceId)getPaymentStatus(id)getPaymentsByExtraId(extraId)getActivePayments()
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests for improvements.