avraapi / laravel-sdk
Official Laravel integration package for the AvraAPI (APIX) enterprise API gateway. Provides a Service Provider, Facade, and config file for seamless Laravel 10/11/12 integration.
Requires
- php: ^8.2
- avraapi/php-sdk: ^1.5.2
- illuminate/support: ^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0|^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-30 09:52:04 UTC
README
AvraAPI Laravel SDK
The official Laravel integration package for AvraAPI. It brings AvraAPI into Laravel through configuration, dependency injection, and a Facade backed by the official PHP SDK.
Read the documentation · SDK guidelines · Visit AvraAPI
About AvraAPI
AvraAPI gives Laravel applications one reliable way to work with essential digital services and configured providers. Your application stays in control of its users, data, order records, and business decisions, while the SDK provides a consistent provider integration experience.
This package supports Laravel 10, 11, and 12 on PHP 8.2 or later. It registers
the official PHP SDK as a Laravel singleton, supports dependency injection, and
provides the AvraAPI Facade. Complete setup, credential safety, service
guidance, and current capabilities are maintained in the
AvraAPI Documentation.
Services
| Service | Built for |
|---|---|
| Currency | Currency codes, live exchange rates, conversions, and CBSL rate information. |
| Location | IP address location details for applications that need geographic context. |
| Security | VPN, proxy, hosting, relay, and disposable-email checks. |
| SMS | Single and bulk messaging through configured SMS providers. |
| Utilities | PDF, QR code, and barcode generation. |
Each service uses the providers configured for your AvraAPI project. Review the service guidelines before enabling a service in a Laravel application.
Advanced Service: Universal Payment Gateway
The Universal Payment Gateway (UPG) is available through the Laravel integration's PHP SDK client. Use dependency injection or the Facade for the server-side payment service while keeping checkout completion, callbacks, gateway credentials, and fulfilment decisions in your backend.
UPG supports configured providers such as PayHere, MarxPay, DirectPay, OnePay, WebXPay, KOKO, PayPlus, and Stripe. Availability and capabilities always depend on the project and configured gateway.
For checkout guidance, Payment Elements, completion safety, and provider-specific requirements, start with the Universal Payment Gateway documentation.
Documentation and guidelines
The documentation is the source of truth for setup and integration guidance:
Developed by
Built and maintained by Fidex Developers (Pvt) Ltd for the AvraAPI platform.
License
AvraAPI Laravel SDK is open-sourced under the MIT License.