stp / spsr-shipment
API for SPSR-EXPRESS shipping
Installs: 186
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 3
Open Issues: 1
pkg:composer/stp/spsr-shipment
Requires
- php: >=5.4.0
- ext-curl: *
- ext-simplexml: *
Requires (Dev)
This package is not auto-updated.
Last update: 2026-01-18 00:04:43 UTC
README
This project aims to provide a PHP wrapper for SPSR API.
Installation
The preferred way to install is through composer.
Either run
composer require "stp/spsr-shipment *"
or add
{
"require": {
"stp/spsr-shipment": "*"
}
}
to the require section of your composer.json.
Usage
Constructing the Client
use stp\spsr\SpsrApi; $api = new SpsrApi($login, $password, $icn);
Create request
Every API method has the same variable name as in official documentation.
use stp\spsr\message\GetCitiesMessage, stp\spsr\response\City; $msg = new GetCitiesMessage(); $msg->CityName = 'Москва'; /** @var City[] $cities */ $cities = $api->request($msg);
For more information, see USAGE.md
Implemented API Methods
- Tariff Calculation
- WACreateOrder
- WAXmlConverter
- WAGetInvoiceInfo 1.1
- WABindOrderToInvoice
- WAGetActiveOrders
- WAGetAddress
- WAGetCities
- WANewInvoicesByFile
- WAInvSessionInfo
- WAGetExtMon
- WAGetServices
- WAGetStreet
- WAGetEncloseType
- WAAddAddress
- WAEditAddress
- WADelAddress
- WAGetOrders
- WACancelOrder
- WACheckGetQuotaByAddress
- WAReservQuota
- WAReservQuotaDelete