PHPackages                             kstkn/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. [API Development](/categories/api)
4. /
5. kstkn/dostavista

ActiveLibrary[API Development](/categories/api)

kstkn/dostavista
================

Dostavista API client

0.11(7y ago)525[2 issues](https://github.com/kstkn/dostavista/issues)MITPHPPHP &gt;=7.0

Since Nov 17Pushed 6y ago4 watchersCompare

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

READMEChangelog (8)Dependencies (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/37dd34f7a6af389e9efa01f2dce3a586fa8a6eef9607c564e33ae37c7d30a1a7/68747470733a2f2f706f7365722e707567782e6f72672f676965746f732f646f73746176697374612f76657273696f6e)](https://packagist.org/packages/gietos/dostavista)[![Total Downloads](https://camo.githubusercontent.com/db96fc25e493118519d985042d52ef7e87882659a782042a112ad84cdae62021/68747470733a2f2f706f7365722e707567782e6f72672f676965746f732f646f73746176697374612f646f776e6c6f616473)](https://packagist.org/packages/gietos/dostavista)[![License](https://camo.githubusercontent.com/43770df3131610daa55865b303c67fc371307da3f89919abf60c51491f4f5636/68747470733a2f2f706f7365722e707567782e6f72672f676965746f732f646f73746176697374612f6c6963656e7365)](https://packagist.org/packages/gietos/dostavista)

[API documentation](https://docs.google.com/document/d/1-yjBzfkI9Zb44kkQB_rMcq5pNeLThyD6YbvXR9wl7IY/edit?usp=sharing)

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

[](#installation)

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

```
composer require gietos/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/bapi',
    'clientId' => '...',
    'token' => '...'
]);
```

### Calculate order

[](#calculate-order)

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

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

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

### Create order

[](#create-order)

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

$orderRequest = (new OrderRequest('Весы'))
    ->setRequireCar(OrderRequest::DELIVERY_TYPE_FOOT)
    ->setBackpaymentMethod(OrderRequest::BACKPAYMENT_CARD)
    ->setBackpaymentDetails('Карта Сбербанка XXXX, получатель СЕРГЕЙ ИВАНОВИЧ П')
    ->setPoints([
        (new Point(
            'Москва, Магистральный пер., 1',
            new DateTime('17:00'),
            new DateTime('18:00'),
            '4951234567'
        ))
        ->setContactPerson('Менеджер Склада Иван')
        ->setNote('Комплекс "Сити-Бокс"'),

        (new Point(
            'Москва, Бобруйская, 28',
            new DateTime('18:00'),
            new DateTime('19:00'),
            '9261234567'
        ))
        ->setContactPerson('Анна Иванова')
        ->setNote('кв.66, домоф.1234')
        ->setTaking(3000),
    ]);

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

### Cancel order

[](#cancel-order)

```
use Dostavista\CancelRequest;

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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 ~78 days

Recently: every ~119 days

Total

8

Last Release

2909d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apidostavistaphp

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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