PHPackages                             kagaroty/dostavista - 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. kagaroty/dostavista

ActiveLibrary

kagaroty/dostavista
===================

Dostavista API client

0.11(7y ago)021MITPHPPHP &gt;=7.0

Since Nov 17Pushed 6y agoCompare

[ Source](https://github.com/Kagaroty/dostavista)[ Packagist](https://packagist.org/packages/kagaroty/dostavista)[ RSS](/packages/kagaroty-dostavista/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (9)Used By (0)

Dostavista API client
=====================

[](#dostavista-api-client)

Non-official PHP library for the dostavista.ru REST API

[![Latest Stable Version](https://camo.githubusercontent.com/8473d62782bb80f38999e7bec50d298edd65c313b54665078026ac09d95e2883/68747470733a2f2f706f7365722e707567782e6f72672f6b616761726f74792f646f73746176697374612f76657273696f6e)](https://packagist.org/packages/kagaroty/dostavista)[![Total Downloads](https://camo.githubusercontent.com/6d8561af48ac0dae8af1af06d432c31ad076190a33fd8acf704973e40bf67a23/68747470733a2f2f706f7365722e707567782e6f72672f6b616761726f74792f646f73746176697374612f646f776e6c6f616473)](https://packagist.org/packages/kagaroty/dostavista)[![License](https://camo.githubusercontent.com/f3510412a9b5e247b2ecd063873f8487799c2f281097ec53857a5b3f034f1ba7/68747470733a2f2f706f7365722e707567782e6f72672f6b616761726f74792f646f73746176697374612f6c6963656e7365)](https://packagist.org/packages/kagaroty/dostavista)

[API documentation](https://apitest.dostavista.ru/business-api/doc)

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
composer require kagaroty/dostavista
```

Usage
-----

[](#usage)

```
// Note, that we use sandbox API URL here, change to production one after tests
$client = new \Dostavista\Dostavista(new \GuzzleHttp\Client, [
    'baseUrl' => 'https://robotapitest.dostavista.ru/api/business/1.1',
    'token' => '...'
]);
```

### Calculate order

[](#calculate-order)

```
use Dostavista\OrderRequest;
use Dostavista\Point;
use Dostavista\ContactPerson;

$orderRequest = (new OrderRequest('Весы'))
    ->setVehicleType(6)
    ->setBackpaymentDetails('Карта Сбербанка XXXX, получатель СЕРГЕЙ ИВАНОВИЧ П')
    ->setPoints([
        (new Point(
            'Москва, Магистральный пер., 1',
            new DateTime('17:00'),
            new DateTime('18:00'),
            (new ContactPerson([
                'name'  => 'Иванов Иван Иванович',
                'phone' => '4951234567'
            ]))
        )),
        (new Point(
            'Москва, Бобруйская, 28',
            new DateTime('18:00'),
            new DateTime('19:00'),
            (new ContactPerson([
                'phone' => '9261234567'
            ]))
        ))
        ->setTaking(3000),
    ]);

$deliveryFee = $client->calculateOrder($orderRequest);
```

### Create order

[](#create-order)

```
use Dostavista\OrderRequest;
use Dostavista\Point;
use Dostavista\ContactPerson;

$orderRequest = (new OrderRequest('Весы'))
    ->setVehicleType(6)
    ->setBackpaymentDetails('Карта Сбербанка XXXX, получатель СЕРГЕЙ ИВАНОВИЧ П')
    ->setPoints([
        (new Point(
            'Москва, Магистральный пер., 1',
            new DateTime('17:00'),
            new DateTime('18:00'),
            (new ContactPerson([
                'name'  => 'Иванов Иван Иванович',
                'phone' => '4951234567'
            ]))
        ))
        ->setNote('Комплекс "Сити-Бокс"'),
        (new Point(
            'Москва, Бобруйская, 28',
            new DateTime('18:00'),
            new DateTime('19:00'),
            (new ContactPerson([
                'phone' => '9261234567'
            ]))
        ))
        ->setNote('Дополнительная информация о заказе для курьера: номер офиса или квартиры И Т.Д.')
        ->setInvisibleMileNavigationInstructions('Инструкция для курьера, как пройти до получателя на месте')
        ->setTaking(3000),
    ]);

$orderId = $client->createOrder($orderRequest);
```

### Create order

[](#create-order-1)

```
$courier = $client->getCourier(123456);
```

### Cancel order

[](#cancel-order)

```
use Dostavista\CancelRequest;

$client->cancelOrder(new CancelRequest(123456));
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~78 days

Recently: every ~119 days

Total

8

Last Release

2911d ago

### Community

Maintainers

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

---

Top Contributors

[![kagaroty](https://avatars.githubusercontent.com/u/30962739?v=4)](https://github.com/kagaroty "kagaroty (7 commits)")[![Cosmologist](https://avatars.githubusercontent.com/u/966525?v=4)](https://github.com/Cosmologist "Cosmologist (5 commits)")

### Embed Badge

![Health badge](/badges/kagaroty-dostavista/health.svg)

```
[![Health](https://phpackages.com/badges/kagaroty-dostavista/health.svg)](https://phpackages.com/packages/kagaroty-dostavista)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M650](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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