Skip to content

TomAtomCZ/sps-webship-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPS Webship API

SPS Webship API PHP client implementation. See webservice documentation for details.

Installation

Install the latest version using composer require riesenia/sps-webship-api

Usage

Create API with username and password

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();
}

Print shipment labels

$url = $api->printShipmentLabels();

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

Print end of day report

$url = $api->printEndOfDay();

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

About

SPS Webship API PHP client implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%