databowl/databowl-vapi

A PHP client for the Databowl Validation API (VAPI)

v0.1.5 2021-03-09 19:53 UTC

README

Introduction

This package contains a PHP library to communicate with the Databowl's VAPI service.

Installation

The recommended way to install databowl/databowl-vapi is through Composer.

composer require databowl/databowl-vapi

Example

First create your client:

$configArray = [
    'privateKey' => '',
    'publicKey' => '',
];
 
$config = \Databowl\Vapi\ClientConfig::createFromArray($configArray);
$client = new \Databowl\Vapi\Client($config);

Then create your request and send it using the client:

$request = new \Databowl\Vapi\Validators\Hlr();
$request->setMobile('your-mobile-number');
 
$result = $client->sendRequest($request);

Further examples are available in the ./examples folder.

Version History

This library has not yet been tagged for release.