Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 981 Bytes

README.md

File metadata and controls

59 lines (40 loc) · 981 Bytes

Deliv PHP Library

Learn more at Deliv.co.

Usage

Setup client

     $client = new \Deliv\DelivClient('apikey', 'production||<defaults_to_staging>');
     $client->deliveries->cancelDelivery('<delivery_id>');

WIP Documentation

Still a work in progress, but all methods are available in this style and format.

Deliveries & Estimate

Create Estimate

    $client->deliveries->createDeliveryEstimate($data);

Get Delivery Estimate

    $client->deliveries->getDeliveryEstimate($id);

Create Delivery

    $client->deliveries->createDelivery($data);

Get Delivery By Id

    $client->deliveries->getDelivery('id');

Update Delivery

    $client->deliveries->updateDelivery($delivery);

Running Tests

composer install --dev
phpunit

Notes

Heavily inspired by https://github.com/intercom/intercom-php

(c) 2017 iSourceWorldWide, LLC