apility/bring-client

Bring API Client for the Netflex SDK

v0.0.1 2021-03-23 13:58 UTC

This package is auto-updated.

Last update: 2024-12-08 19:48:06 UTC


README

Setup

Add config/bring.php like the following example:

return [
    'login_id' => 'user@example.com',
    'api_key' => '00000000-000-0000-0000-000000000000'
];

or simply create the following .ENV variables:

BRING_LOGIN_ID=user@example.com
BRING_API_KEY=00000000-000-0000-0000-000000000000

Usage

<?php

use Bring;

$postalCode = Bring::lookupPostalCode(5161);

if ($postalCode) {
    echo $postalCode->city;
} else {
    echo 'Postalcode not found';
}