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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

  1. The SDK sends the Base64 string in the html field with is_base64: true.
  2. The server decodes the Base64 content before validation and rendering.
  3. 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


License

MIT — Fidex Developers (Pvt) Ltd


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
guzzlehttp/promises Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package avraapi/php-sdk contains the following files

Loading the files please wait ...