PHPackages                             stas-plov/jde-shipping - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. stas-plov/jde-shipping

ActiveLibrary[HTTP &amp; Networking](/categories/http)

stas-plov/jde-shipping
======================

Library for interaction with the ZheldorExpedition API

v1.0.0(1y ago)05MITPHPPHP &gt;=7.4

Since Oct 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/StasPlov/jde-shipping)[ Packagist](https://packagist.org/packages/stas-plov/jde-shipping)[ RSS](/packages/stas-plov-jde-shipping/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

jde shipping API integration SDK
================================

[](#jde-shipping-api-integration-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/d69bcfc0c5f89eca69db337e50d29367b05e4348d3b273ec70d76aba3572be66/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f6a64652d7368697070696e672f76)](https://packagist.org/packages/stas-plov/jde-shipping)[![Total Downloads](https://camo.githubusercontent.com/6dd7052b393c392fe7d6b3d4da44186aa668fe030041ec69d6c13fe5d66261e3/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f6a64652d7368697070696e672f646f776e6c6f616473)](https://packagist.org/packages/stas-plov/jde-shipping)[![Latest Unstable Version](https://camo.githubusercontent.com/11f6b85b2459192cd325741072ef53c1f5a5eb99eee9ee9f64448c2c30cafd3d/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f6a64652d7368697070696e672f762f756e737461626c65)](https://packagist.org/packages/stas-plov/jde-shipping)[![License](https://camo.githubusercontent.com/802fc599e1a546a4df4bbfc970c634e2caad1f0447a34734baf78f3daae2150c/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f6a64652d7368697070696e672f6c6963656e7365)](https://packagist.org/packages/stas-plov/jde-shipping)[![PHP Version Require](https://camo.githubusercontent.com/42df65f4a1a30c0327fb1710d4629edbbe31b07ae158adc2f2b7adaca185e996/687474703a2f2f706f7365722e707567782e6f72672f737461732d706c6f762f6a64652d7368697070696e672f726571756972652f706870)](https://packagist.org/packages/stas-plov/jde-shipping)

Features:

- Cost Calculation
    - Delivery cost calculation by addresses
    - Delivery cost calculation
    - SMART delivery cost calculation (by city names)
- Requests
    - New delivery request
    - List of requests
- Shipments
    - Receiving new shipment statuses
    - Shipment delivery status by waybill number
    - Simplified shipment delivery status by waybill number
    - Setting a delivery restriction on a shipment
- Services
    - Receiving a list of service codes
    - Receiving information on shipment services
    - Receiving a package of documents
    - Receiving payment data for services
- Geography
    - Searching for terminals by KLADR
    - Searching for cities by types
    - Searching by terminal type
    - Branch working hours
- Documents
    - Receiving documents
    - Receiving a list of document codes

Installation
------------

[](#installation)

```
composer require StasPlov/jde-shipping
```

How to use
==========

[](#how-to-use)

```
$jdeShipping = new JdeShipping();

$jdeShipping->setUser('1234');
$jdeShipping->setToken('1234');

$geo = new GeoSearchRequest();
$geo ->setMode(1);

$result = $jdeShipping->getGeoSearch($geo);
```

Cost Calculation
----------------

[](#cost-calculation)

### Delivery cost calculation by addresses

[](#delivery-cost-calculation-by-addresses)

```
$shipmentCalc = (new ShipmentCostCalcByAddressRequest())
	->setAddrFrom('владивосток')
	->setAddrTo('москва')
	->setType(1)
	->setWeight(2.167)
	->setWidth(0.121)
	->setHeight(0.121)
	->setLength(2.135)
	->setQuantity(1)
	->setPickup(1)
	->setDelivery(1)
	->setDeclared(3670)
	->setOversizeWeight(1)
	->setOversizeVolume(1)
	->setObrVolume(0.031);

$result = $this->jdeShipping->getShipmentCostCalcByAddress($shipmentCalc);

if($result->isOk()) {
	$cost = $result->getPrice();
}
```

### Delivery cost calculation

[](#delivery-cost-calculation)

```
$shipmentCalc = (new ShipmentCostCalcRequest())
	->setFrom('1010005858')
	->setTo('1125904247254472')
	->setType(1)
	->setWeight(216)
	->setVolume(0.41);

$result = $this->jdeShipping->getShipmentCostCalcByAddress($shipmentCalc);

if($result->isOk()) {
	$cost = $result->getPrice();
}
```

### SMART delivery cost calculation (by city names)

[](#smart-delivery-cost-calculation-by-city-names)

```
$shipmentCalc = (new ShipmentCostCalcRequest())
	->setFrom('Москва')
	->setTo('Владивосток')
	->setType(1)
	->setWeight(216)
	->setVolume(0.41)
	->setSmart(true);

$result = $this->jdeShipping->getShipmentCostCalcByAddress($shipmentCalc);

if($result->isOk()) {
	$cost = $result->getPrice();
}
```

Order Requests
--------------

[](#order-requests)

### New delivery request

[](#new-delivery-request)

```
$order = (new OrderCreateRequest())
	->setFrom("1125899906842653")
	->setTo("1125899906842629")
	->setVolume(1)
	->setWeight(1)
	->setPositions(2)
	->setGruzdesc("Бытовая техника и электроника")
	->setPayer(JdeShipping::PAYER_SENDER)
	->setSender(
		(new PersonSender)
			->setAddr("Санкт-Петербург, Невский 30-2-12")
			->setTitle("ООО Отправитель")
			->setPhone("+79110000000")
	)
	->setReceiver(
		(new PersonReceiver)
			->setAddr("г. Москва, ул. 2-й Лучевой просек, д. 5В")
			->setTitle("ООО Получатель")
			->setPhone("+79110000000")
	);

$result = $this->jdeShipping->sendOrderCreate($geoKladr);

$orderNumber = $result->getOrderNumber();
```

### List of requests

[](#list-of-requests)

```
$geoKladr = new OrderListRequest();

$response = $this->jdeShipping->getOrderList($geoKladr);

if(!empty($result)) {
	$id = $result[0]->getId();
	$cargoStatus = $result[0]->getInfo()->getCargostatus()
}
```

Geography
---------

[](#geography)

### Searching for terminals by KLADR

[](#searching-for-terminals-by-kladr)

```
$geoKladr = (new GeoSearchByKladrRequest())
	->setKladrCode('5002700102400');

$result = $this->jdeShipping->getGeoSearchByKladr($geoKladr);

if(!empty($result)) {
	$city = $result[0]->getCity();
	$address = $result[0]->getAddr();
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db6e2338b8eddd9978946a9ba912a30231864185f772f720f4940527a0f0b4ad?d=identicon)[StasPlov](/maintainers/StasPlov)

---

Top Contributors

[![StasPlov](https://avatars.githubusercontent.com/u/62498475?v=4)](https://github.com/StasPlov "StasPlov (47 commits)")

---

Tags

apijdesdkshipmentshipping-apiphpapirestshippingjde

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stas-plov-jde-shipping/health.svg)

```
[![Health](https://phpackages.com/badges/stas-plov-jde-shipping/health.svg)](https://phpackages.com/packages/stas-plov-jde-shipping)
```

###  Alternatives

[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[abantecart/ups-php

UPS PHP SDK based on OAuth

1815.3k](/packages/abantecart-ups-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
