2017 © Pedro Peláez
 

library whiplash-api-php

Whiplash API for PHP

image

whiplash/whiplash-api-php

Whiplash API for PHP

  • Monday, February 6, 2017
  • by mizan3008
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,435 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 18 % Grown

The README.md

Whiplash API

Super-simple, minimum abstraction Whiplash API v1 wrapper for PHP/Laravel., (*1)

Requires PHP 5.3 and a pulse., (*2)

Whiplash relies on 3 tables for the majority of calls: Items, Orders, and Order Items. Items are specific inventory items, Orders are requests for a shipment to be sent, and Order Items are what that order should contain., (*3)

Installation

You can install the whiplash-api using Composer:, (*4)

composer require whiplash/whiplash-api-php

Examples

use this on top of your class:, (*5)

use Whiplash\WhiplashApi;

Initialize the Whiplash API with your Whiplash API key:, (*6)

$apiKey = 'YOUR API KEY';
$api = new WhiplashApi($apiKey);

Create item:, (*7)

$item = $api->create_item(['sku' => 'NEW_SKU_123', 'name' => 'My Test Item', 'description' => 'My item description']);

Get item list:, (*8)

$items = $api->get_items();
print_r($items);

Get item by id:, (*9)

$item = $api->get_item(ITEM_ID);
print_r($item);

*More documentation coming soon..., (*10)

The Versions

06/02 2017

dev-master

9999999-dev https://github.com/mizanur-rahman/whiplash-api-php

Whiplash API for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

whiplash-api-php

06/02 2017

v1.4

1.4.0.0 https://github.com/mizanur-rahman/whiplash-api-php

Whiplash API for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

whiplash-api-php

06/02 2017

v1.3

1.3.0.0 https://github.com/mizanur-rahman/whiplash-api-php

Whiplash API for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

whiplash-api-php

06/02 2017

v1.2

1.2.0.0 https://github.com/mizanur-rahman/whiplash-api-php

Whiplash API for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

whiplash-api-php

05/02 2017

1.0

1.0.0.0 https://github.com/mizanur-rahman/whiplash-api-php

Whiplash API for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

whiplash-api-php