PHPackages                             gennadyx/php-shop-logistics.ru-api - 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. [API Development](/categories/api)
4. /
5. gennadyx/php-shop-logistics.ru-api

ActiveLibrary[API Development](/categories/api)

gennadyx/php-shop-logistics.ru-api
==================================

php-shop-logistics.ru-api composer package

0.1.2(8y ago)2421MITPHPPHP ~5.6|~7.0

Since Mar 5Pushed 8y agoCompare

[ Source](https://github.com/gennadyx/php-shop-logistics.ru-api)[ Packagist](https://packagist.org/packages/gennadyx/php-shop-logistics.ru-api)[ Docs](https://github.com/gennadyx/php-shop-logistics.ru-api)[ RSS](/packages/gennadyx-php-shop-logisticsru-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (10)Versions (4)Used By (0)

php-shop-logistics.ru-api
=========================

[](#php-shop-logisticsru-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9db028eb046bb46b7ae7a7d7e44a2447c144eea063e95cd796f5f2b56f6572d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692e7376673f7374796c653d666c6174)](https://packagist.org/packages/gennadyx/php-shop-logistics.ru-api)[![Software License](https://camo.githubusercontent.com/9850aac9e83257a4c950c1bb30c6ca4792ef776f6e9def60a70585ffdb60ccf6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692e7376673f7374796c653d666c6174)](LICENSE)[![Build Status](https://camo.githubusercontent.com/d3bc7069cfd3db1fc5ab77efbd6a291f9773eab8a5447713ba62dcd935c20d68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/gennadyx/php-shop-logistics.ru-api)[![Total Downloads](https://camo.githubusercontent.com/959623cfe87fac19e549156e109c8f921d5955fa144eee2b9b28f67f8c85f232/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692e7376673f7374796c653d666c6174)](https://packagist.org/packages/gennadyx/php-shop-logistics.ru-api)

[![Coverage Status](https://camo.githubusercontent.com/a520e2a78e9a3609b1b63841431ceb866c3a1157ca8613f0517230480869d409/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/gennadyx/php-shop-logistics.ru-api/code-structure)[![Sensiolabs_Medal](https://camo.githubusercontent.com/59bfcbc1bd3a2b9cd55f0530e0129b8b85a82949bee63f8f82821dbfbf7f1bd8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36656465363330362d633633322d343065632d626666622d3865353333613831636135352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/6ede6306-c632-40ec-bffb-8e533a81ca55)[![Quality Score](https://camo.githubusercontent.com/339c867f3c6fcc84df0c5c04254b5d0585b5670dc09078aad50f8e0ac08de7f9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67656e6e616479782f7068702d73686f702d6c6f676973746963732e72752d6170692e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/gennadyx/php-shop-logistics.ru-api)

\##php-shop-logistics.ru-api PHP oop wrapper for shop-logistics.ru remote functions

Install
-------

[](#install)

Via Composer

```
$ composer require gennadyx/php-shop-logistics.ru-api
```

Usage
-----

[](#usage)

```
use Gennadyx\ShopLogisticsRu\ApiClientBuilder;
use Gennadyx\ShopLogisticsRu\Environment;
use Gennadyx\ShopLogisticsRu\Api\Dictionary;
use Http\Message\MessageFactory\DiactorosMessageFactory;
use Http\Message\StreamFactory\DiactorosStreamFactory;

$client = ApiClientBuilder::create()
    ->withRequestFactory(new DiactorosMessageFactory())
    ->withStreamFactory(new DiactorosStreamFactory())
    ->withEncoder(function ($data) {
        $xml = '';
        //your logic here
        return $xml;
    })
    ->withEnvironment(Environment::PROD())
    ->withKey('your_key')
    ->build();

//or just build with default parameters
$client = ApiClientBuilder::create()->build();

/** @var Dictionary $dictionary */
$dictionary = $client->api('dictionary');

//call remote function
$cities = $dictionary->getCities();
//or
$states = $client->dictionary->getStates();//array

//if any error (http exception or other)
$metro = $client->dictionary->getMetro();
//$metro instance of \Gennadyx\ShopLogisticsRu\Response\Error with error code
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Gennady Knyazkin](http://gennadyx.tech)
- [All Contributors](https://github.com/gennadyx/php-shop-logistics.ru-api/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Every ~107 days

Total

3

Last Release

3138d ago

### Community

Maintainers

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

---

Top Contributors

[![gennadyx](https://avatars.githubusercontent.com/u/10096748?v=4)](https://github.com/gennadyx "gennadyx (9 commits)")

---

Tags

composerlibraryphprpcapirpcremoteshop-logistics.ru

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gennadyx-php-shop-logisticsru-api/health.svg)

```
[![Health](https://phpackages.com/badges/gennadyx-php-shop-logisticsru-api/health.svg)](https://phpackages.com/packages/gennadyx-php-shop-logisticsru-api)
```

###  Alternatives

[sajya/server

Easy implementation of the JSON-RPC 2.0 server for the Laravel framework.

2391.9M4](/packages/sajya-server)[hieu-le/wordpress-xmlrpc-client

A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API with full test suite built in

118158.5k2](/packages/hieu-le-wordpress-xmlrpc-client)[sajya/client

HTTP client and server for JSON-RPC 2.0

21996.6k](/packages/sajya-client)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[tbondois/odoo-ripcord

Ripoo : a PHP8 XML-RPC client handler for Odoo External API

16124.3k1](/packages/tbondois-odoo-ripcord)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)

PHPackages © 2026

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