Download the PHP package avraapi/php-sdk without Composer
On this page you can find all versions of the php package avraapi/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-sdk
AvraAPI PHP SDK
Official PHP SDK for the AvraAPI (APIX) enterprise API gateway.
Zero Laravel dependencies — works in any PHP 8.2+ project.
Full documentation & guides: https://avraapi.com/developers/sdks
Quick Start
Services
| Service | Accessor | Endpoints |
|---|---|---|
| Location | $apix->location() |
IP geolocation lookups |
| SMS | $apix->sms() |
Single, bulk-same, bulk-different, balance |
| Utilities | $apix->utilities() |
QR codes, barcodes, PDF generation |
| Security | $apix->security() |
VPN & Proxy Shield, Burner Email Detection |
| Currency | $apix->currency() |
Currency codes, live rates, pair rates, conversion |
PDF Generation
Basic HTML to PDF
Landscape with Custom Margins
Base64 JSON Response
Generating PDFs from Complex Templates (Base64 Mode)
When your HTML contains quotes, newlines, inline CSS, or special characters, JSON escaping can cause issues. Base64 mode solves this by encoding the HTML before transport.
Option A: Use the generatePdfFromBase64() Helper (Recommended)
The helper accepts raw HTML and encodes it automatically:
Option B: Manual Base64 Encoding
If you need full control, encode the HTML yourself and set isBase64: true:
How It Works
- The SDK sends the Base64 string in the
htmlfield withis_base64: true. - The server decodes the Base64 content before validation and rendering.
- The 512 KB size limit applies to the decoded HTML, not the encoded payload.
Saving Files to Disk
Both BinaryResponse and the base64 JSON response support saving to disk:
VPN & Proxy Shield
Detect VPNs, proxies, Tor exit nodes, iCloud Private Relay, and hosting/datacenter IPs.
Burner Email Shield
Detect temporary and disposable email addresses using a dual-list Redis lookup (7,000+ domains).
Multi-Currency Rates & Conversion
Free currency exchange rate API — 160+ currencies, 2-hour cached rates, zero credit cost.
Get All Currency Codes
Get Latest Rates from a Base Currency
Get Pair Rate
Convert an Amount
Privacy Mode
For sensitive documents (invoices, contracts, PII), enable privacy mode to exclude HTML content from observability logs:
Error Handling
The SDK throws typed exceptions for all API error responses:
Documentation
For full API reference, usage guides, and interactive examples, visit:
https://avraapi.com/developers/sdks