Download the PHP package onepay-ye/onepay-api-php-sdk without Composer
On this page you can find all versions of the php package onepay-ye/onepay-api-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onepay-ye/onepay-api-php-sdk
More information about onepay-ye/onepay-api-php-sdk
Files in onepay-ye/onepay-api-php-sdk
Package onepay-api-php-sdk
Short Description Official PHP SDK for OnePay payment gateway integration.
License MIT
Informations about the package onepay-api-php-sdk
OnePay API SDK (PHP)
Enterprise-Grade Payment Gateway SDK for OnePay Platform
One Pay RESTful Web API Reference (1.1.0) one-pay.info/documentation
Overview
OnePay-API-SDK is an official PHP package for rapid integration with the OnePay payment system.
It provides core payment operations:
- ✔ Account Auth Information
- ✔ Create Payment Order
- ✔ Check Order Status
- ✔ Retrieve Invoices
Built on:
- PHP 7.4+
- GuzzleHTTP
- PSR-4 Autoloading
- Environment-based configuration
- Enterprise-level structure
Features
- Fully built on Guzzle HTTP Client
- Supports Internal Validation for all parameters
- Supports Sandbox + Live mode
- Ready to use as REST Proxy
- Easy integration with any PHP app, Laravel, Symfony, or internal systems
- Includes Complete Postman Collection
- Full documentation in
docs/
Requirements
- PHP >= 7.4
- Composer
- cURL extension enabled
- Valid OnePay API Token
- Merchant ID
Installation
Then set your OnePay token:
Project Structure
Usage
Load Client
Examples
Account Info
Create Order
Check Order
Invoice List
Payload Validation & Proxy Handler
Internal Order Validation (OrderValidator)
You can use OrderValidator to check payload integrity before sending requests:
Proxy Router Example (proxy_router.php)
The SDK includes a ready-to-run REST Proxy located in examples/proxy_router.php. It automatically maps incoming HTTP requests to ApiHandler and handles validation out of the box.
Postman Collection
Located in:
Security
- Do not upload .env
- Use HTTPS
-
Do not share your token
Developer
Essam Dev
https://essam-art.com
GitHub: https://github.com/onepay-ye