ezvenue/ezvenue-php-sdk

PHP SDK for EZ Venue API v1

0.3.9 2020-10-01 22:11 UTC

This package is auto-updated.

Last update: 2024-11-29 05:39:13 UTC


README

PHP SDK for EZ Venue API.

Installation

$ composer require ezvenue/ezvenue-php-sdk

Usage

use \EZVenue\EZVenue;
use \EZVenue\Lookup;

const EZV_USERNAME = 'YOUR_EZV_USERNAME';
const EZV_ACCESS_TOKEN = 'YOUR_EZV_ACCESS_TOKEN';

$ezv = new EZVenue(EZV_USERNAME, EZV_ACCESS_TOKEN);

$data = [
    'ref' => 'XXXX',
    'amount' => 1000,
    'address' => '1234 Your Address, TX 12345' // can be a coordinates e.g. 123.233334,-93.334343
];

$lookup = $ezv->lookup($data);
print_r($lookup);

License

Released under the MIT License. See LICENSE file.