PHPackages                             niklan/dellin-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. niklan/dellin-api

ActiveLibrary[API Development](/categories/api)

niklan/dellin-api
=================

PHP SDK for Dellin API.

1774↓75%1PHP

Since Oct 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Niklan/PHP-Dellin-API-SDK)[ Packagist](https://packagist.org/packages/niklan/dellin-api)[ RSS](/packages/niklan-dellin-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Dellin (Деловые Линии) API SDK
==================================

[](#php-dellin-деловые-линии-api-sdk)

What is it?
-----------

[](#what-is-it)

A PHP library which implements API for .

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

[](#installation)

PHP 7.2+ as minimum requirement because of use new features.

Install package via compose:

```
$ composer require niklan/dellin-api
```

Documentation
-------------

[](#documentation)

- [Offical Dellin documentation](https://dev.dellin.ru/api/)

Examples
--------

[](#examples)

The library is just a set of PHP wrappers to destination endpoints for Dellin.

Currently library supports only **json** format. There is no decoder and encoder for XML and I have not future plans to implement it.

### Public API auth

[](#public-api-auth)

The minimum required authentication at dev.dellin.ru is `appkey`, which is represented by `AppkeyAuth`.

```
$auth = new AppkeyAuth('MY-DELLIN-APPKEY');
```

### Session Auth

[](#session-auth)

This authentication method used for some "client specific" API's that requires `sessionID`.

```
$auth = new SessionAuth('MY-DELLIN-APPKEY', 'SESSION-TOKEN-ID');
```

### Build a Client

[](#build-a-client)

For sending request it's need to be isntantiated HttpClient representation. It requires you to pass one of two authentication methods. They will be used during request sending.

```
$client = new HttpClient($auth);
```

### Send request

[](#send-request)

You can send request to any Dellin api by using `request()` method from `$client`.

In first argument you pass API endpoint **without** base uri and format, and in second your params.

```
// @see https://dev.dellin.ru/api/auth/login/
$response = $client->request('/v1/customers/login', ['login' => 'example', 'password' => '123']);
$result = $response->getResult();
```

### Send request using PHP wrapper.

[](#send-request-using-php-wrapper)

Wrappers for endpoints is simple and just collect data to send in more friendly way.

The request above using wrapper:

```
$request = new Login('example' , '123');
$response = $client->execute($request);
$result = $response->getResult();
```

In that way:

- You don't need to handle endpoints every time. You just use semantic object.
- All required by an API params will be required by object constructor, so you don't miss something.
- All optional params set by setters.

*It's better to implement php-http.org with PSR-18 in 2.x verions, if it will be created.*

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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.

### Community

Maintainers

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

---

Top Contributors

[![Niklan](https://avatars.githubusercontent.com/u/2356744?v=4)](https://github.com/Niklan "Niklan (13 commits)")

### Embed Badge

![Health badge](/badges/niklan-dellin-api/health.svg)

```
[![Health](https://phpackages.com/badges/niklan-dellin-api/health.svg)](https://phpackages.com/packages/niklan-dellin-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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