Skip to content

Starshipit PHP SDK

License

Notifications You must be signed in to change notification settings

cedcommerce/starshipit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP library to interface with the Starshipit API

Installation

The recommended way to install is via Composer.

composer require cedcommerce/starshipit dev-master

Don't forget to include Composer's auto-loader if you haven't already:

require 'vendor/autoload.php';

Usage

        /** @var \Starshipit\Model\Authorization $auth */
        $auth = new \Starshipit\Model\Authorization(
                "https://api.starshipit.com/api/",
                "starshipit-api-key", // to be changed
                'subscription-Key', // to be changed
                "your-user-agent" // to be changed
        );

        /** @var \Starshipit\Service\Order $order */
        $order = \Starshipit\Api::order($auth);
        /** @var \Starshipit\Model|Search $result */
        $result = $order->search("xyz");
        /** @var \Starshipit\Model\Order $item */
        if ($result->getSuccess()) {
            echo "Success";
        }

API

API Documentation

Supported Methods

  • [POST] Create Label
  • [POST] Create Order
  • [GET] Get Order
  • [GET] Search Orders
  • [GET] Tracking Details

Methods Not Supported at this Stage

  • [GET] Address Validation
  • [POST] Create Orders
  • [POST] Delete Orders
  • [POST] Delivery Services
  • [GET] Shipping Rates
  • [GET] Unshipped Orders
  • [PUT] Update Order
  • [GET] Users Address Book

Special Thanks

JMS Serializer

Guzzle

James-Azzopardi/starshipit