A maintained fork of ship-station, a PHP wrapper for ShipStations REST API.
Switch branches/tags
Clone or download
Pull request Compare This branch is 15 commits ahead of michaelbonds:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

ShipStation Api Wrapper for PHP

Install


composer require zack6849/ship-station

Docs


Using ShipStationApi


use MichaelB\ShipStation\ShipStationApi;

$apiKey = ''; // Your ShipStation Api Key
$apiSecret = ''; // Your ShipStation Api Secret
$options = []; // Options to be merged into the normal GuzzleHttp\Client options

// ShipStationApi Extends GuzzleHttp\Client
$shipstation = new ShipStationApi($apiKey, $apiSecret, $options);

/*
 * Get a service instance
 */
 
// Orders
$orderService = $shipstation->orders;

// Products
$products = $shipstation->products;

// ...

/*
 * Use the service
 */
$order = $orderService->getOrder('1234');

// All service methods return a GuzzleHttp\Psr7\Response object
$json = $order->getBody(); // { 'order': {...} }
$status = $order->getStatusCode(); // 200