Download the PHP package jacobdekeizer/statusweb-client without Composer
On this page you can find all versions of the php package jacobdekeizer/statusweb-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jacobdekeizer/statusweb-client
More information about jacobdekeizer/statusweb-client
Files in jacobdekeizer/statusweb-client
Package statusweb-client
Short Description Statusweb API client for PHP
License MIT
Homepage https://github.com/jacobdekeizer/statusweb-client
Informations about the package statusweb-client
Statusweb API client for PHP
Get your api keys from Statusweb > Help > Statusweb API. On this page you can also get the Statusweb API documentation.
Installation
You can install this package via composer:
Usage
This readme shows basic usage of this package, for all available options look at the class definitions and the api documentation.
Create the client
Create shipment
Delete shipment
Send shipments
Sends all shipments where setDirectSend was false
Get shipment status
This endpoint does only work if the shipment is in transport or has arrived.
All shipment statuses
This endpoint does only work if the are any shipments in transport or that have arrived.
Get statusweb status url
Get the statusweb status url -> does only work when the shipment is in transport or has arrived
Get estimated time of arrival
This endpoint does only work if the shipment is in transport or has arrived.
Get label
This endpoint does only work if the shipment isn't confirmed by the send endpoint and directSend for the shipment was false
Exceptions
Each endpoint can throw a StatuswebErrorResponse
or StatuswebException
.
The StatuswebErrorResponse
contains the error code and message from statusweb.
For example:
Register your own session store implementation (Optional)
Statusweb session ids are valid for 2 hours.
To reduce the amount of sessionId requests you can create your own SessionStore.
By default the JacobDeKeizer\Statusweb\Stores\DefaultSessionStore
is used.
All versions of statusweb-client with dependencies
ext-soap Version *
ext-json Version *