Download the PHP package blaaiz/blaaiz-laravel-sdk without Composer

On this page you can find all versions of the php package blaaiz/blaaiz-laravel-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 blaaiz-laravel-sdk

Blaaiz Laravel SDK

A comprehensive Laravel SDK for the Blaaiz RaaS (Remittance as a Service) API. This SDK provides easy-to-use methods for payment processing, collections, payouts, customer management, and more.

Installation

Quick Start

Features

Supported Currencies & Methods

Collections

Payouts

API Reference

Customer Management

Create a Customer

Get Customer

List All Customers

Update Customer

File Management & KYC

Upload Customer Documents

Method 1: Complete File Upload (Recommended)

Method 2: Manual 3-Step Process

Note: The uploadFileComplete method is recommended as it handles all three steps automatically: getting the pre-signed URL, uploading the file to S3, and associating the file with the customer. It supports multiple file input formats:

  • String path/content: Direct binary data or file path
  • Base64 string: Plain base64 encoded data
  • Data URL: Complete data URL with mime type (e.g., data:image/jpeg;base64,/9j/4AAQ...)
  • Public URL: HTTP/HTTPS URL that will be downloaded automatically (supports redirects, content-type detection, and filename extraction)

Collections

Initiate Open Banking Collection (EUR/GBP)

Initiate Card Collection (NGN/USD)

Crypto Collection

Attach Customer to Collection

Payouts

Bank Transfer Payout

Interac Payout (CAD)

Virtual Bank Accounts

Create Virtual Bank Account

List Virtual Bank Accounts

Wallets

List All Wallets

Get Specific Wallet

Transactions

List Transactions

Get Transaction Details

Banks & Currencies

List Banks

Bank Account Lookup

List Currencies

Fees

Get Fee Breakdown

Webhooks

Register Webhooks

Get Webhook Configuration

Replay Webhook

Advanced Usage

Complete Payout Workflow

Complete Collection Workflow

Using Dependency Injection

Error Handling

The SDK uses a custom BlaaizException class that provides detailed error information:

Rate Limiting

The Blaaiz API has a rate limit of 100 requests per minute. The SDK automatically includes rate limit headers in responses:

Webhook Handling

Webhook Signature Verification

The SDK provides built-in webhook signature verification to ensure webhook authenticity:

Complete Laravel Webhook Handler

Webhook Routes

Add these routes to your routes/web.php or routes/api.php:

Disable CSRF Protection for Webhooks

Add webhook routes to the CSRF exception list in app/Http/Middleware/VerifyCsrfToken.php:

Environment Configuration

The SDK configuration can be customized via the .env file:

Configuration File

After publishing the config file with php artisan vendor:publish --tag=blaaiz-config, you can modify config/blaaiz.php:

Best Practices

  1. Always validate customer data before creating customers
  2. Use the fees API to calculate and display fees to users
  3. Always verify webhook signatures using the SDK's built-in methods
  4. Store customer IDs and transaction IDs for tracking
  5. Handle rate limiting gracefully with exponential backoff
  6. Use environment variables for API keys and webhook secrets
  7. Implement proper error handling and logging
  8. Test webhook endpoints thoroughly with signature verification
  9. Disable CSRF protection for webhook endpoints
  10. Return appropriate HTTP status codes from webhook handlers (200 for success, 400 for invalid signatures)

Requirements

Support

For support and additional documentation:

License

This SDK is provided under the MIT License


All versions of blaaiz-laravel-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.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 blaaiz/blaaiz-laravel-sdk contains the following files

Loading the files please wait ....