2017 © Pedro Peláez
 

library sps-webship-api

SPS Webship Api PHP client implementation

image

riesenia/sps-webship-api

SPS Webship Api PHP client implementation

  • Tuesday, March 7, 2017
  • by riesenia
  • Repository
  • 2 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 75 % Grown

The README.md

SPS Webship API

SPS Webship API PHP client implementation. See webservice documentation for details., (*1)

Installation

Install the latest version using composer require riesenia/sps-webship-api, (*2)

Usage

Create API with username and password, (*3)

use Riesenia\SpsWebship\Api;

$api = new Api($username, $password);

Create shipment

$data = [
    'cod' => [
        'codvalue' => 12.30
    ],
    'insurvalue' => 12.30,
    'notifytype' => 1,
    ...
];

if (!$api->createShipment($shipment)) {
    echo $api->getMessages();
}
$url = $api->printShipmentLabels();

if (!$url) {
    echo $api->getMessages();
}
$url = $api->printEndOfDay();

if (!$url) {
    echo $api->getMessages();
}

The Versions

07/03 2017

dev-master

9999999-dev

SPS Webship Api PHP client implementation

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Tomas Saghy

07/03 2017

v1.0.0

1.0.0.0

SPS Webship Api PHP client implementation

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Tomas Saghy