PHPackages                             jackmartin/api3intime - 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. jackmartin/api3intime

AbandonedArchivedLibrary[API Development](/categories/api)

jackmartin/api3intime
=====================

API InTime 3 version

v1.2.1(6y ago)56.9k5MITPHPPHP &gt;=7.0

Since Oct 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/martinjack/Intime3)[ Packagist](https://packagist.org/packages/jackmartin/api3intime)[ RSS](/packages/jackmartin-api3intime/feed)WikiDiscussions master Synced 1mo ago

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

Описание
========

[](#описание)

[![Latest Stable Version](https://camo.githubusercontent.com/f287cbd75d214e0b855b8c8a15723cb42d3c965a21dc8b32e5030ffac536a85b/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f61706933696e74696d652f762f737461626c65)](https://packagist.org/packages/jackmartin/api3intime) [![Total Downloads](https://camo.githubusercontent.com/0f62640417da1d80d3908b352dcbe4a4fc082c6dce936c96b22b3ed2d7b4111e/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f61706933696e74696d652f646f776e6c6f616473)](https://packagist.org/packages/jackmartin/api3intime) [![License](https://camo.githubusercontent.com/6ce0f59f6d89a6f684d3f1e482696bda33462caf1df1c9aa74bec82249320741/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f61706933696e74696d652f6c6963656e7365)](https://packagist.org/packages/jackmartin/api3intime)

PHP класс для работы с почтой Intime

Документация
============

[](#документация)

[Інструкція по інтеграції з веб- сервісами Ін-Тайм. API 3.1](https://intime.ua/upload/images/document/api_3_1.pdf)

Требование
==========

[](#требование)

- PHP не ниже 7.0
- Composer

Composer
========

[](#composer)

```
composer require jackmartin/api3intime
```

Библиотеки
==========

[](#библиотеки)

1. [Soap-Guzzle](https://github.com/meng-tian/async-soap-guzzle)

Методы API
==========

[](#методы-api)

1. Настройка подключения
    - [\_\_construct](#__construct)
2. Получить список стран
    - [getCountryList](#getCountryList)
3. Получить информацию о стране по ID
    - [getCountryId](#getCountryIdid)
4. Получить список областей
    - [getAreaList](#getAreaList)
5. Получить информацию о областе по ID
    - [getAreaId](#getAreaIdid)
6. Получить список областей по фильтру
    - [getAreaFilter](#getAreaFilterdata--array)
7. Получить список районов
    - [getDistrictList](#getDistrictList)
8. Получить информацию о районе по ID
    - [getDistrictId](#getDistrictIdid)
9. Получить список районов по фильтру
    - [getDistrictFilter](#getDistrictFilterdata--array)
10. Получение список населенных пунктов
    - [getLocalityList](#getLocalityList)
11. Получить информацию о населенным пункте по ID
    - [getLocalityId](#getLocalityIdid)
12. Получить список населенных пунктов по фильтру
    - [getLocalityFilter](#getLocalityFilterdata--array)
13. Получение список складов / почтоматов
    - [getBranchList](#getBranchList)
14. Получить информацию о складе / почтомате по ID
    - [getBranchId](#getBranchIdid)
15. Получить список складов / почтоматов по фильтру
    - [getBranchFilter](#getBranchFilterdata--array)
16. Получить список описаний груза
    - [getGoodsDescList](#getGoodsDescList)
17. Получить описание груза по ID
    - [getGoodsDescId](#getGoodsDescIdid)
18. Получить список упаковок
    - [getBoxList](#getBoxList)
19. Получить упаковку по ID
    - [getBoxId](#getBoxIdid)
20. Создать заявку ТТН
    - [declarationCreate](#declarationCreatedata--array)
21. Получить список графика работы складов
    - [getBranchWorkList](#getBranchWorkList)
22. Получить график работы склада по ID
    - [getBranchWorkId](#getBranchWorkIdid)
23. Получить список историй ТТН
    - [declStatus](#declstatusnumber)
24. Получить информацию ТТН
    - [getTTN](#getttnnumber)

Пример
======

[](#пример)

### \_\_construct()

[](#__construct)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');
// $intime = new InTime3('API_KEY', true, false, 30, 30);
// $intime = new InTime3('API_KEY', true, false);
```

### getCountryList()

[](#getcountrylist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');
//$intime = new InTime3('API_KEY', false); print data stdclass format
//$intime = new InTime3('API_KEY', false, true); debug mode

print_r($intime->getCountryList());
//{"Entry_get_country_by_id":[{"id":"213","name_ua":"УЕЛЬС","name_en":"WALES","name_ru":"УЭЛЬС","short_name_ua":"УЕЛЬС","short_name_en":"WALES","short_name_ru":"УЭЛЬС","code":"000000213","last_change":"2017-08-30T21:04:00.000+03:00","status":"1"},{"id":"214","name_ua":"УЗБЕКИСТАН","name_en":"UZBEKISTAN","name_ru":"УЗБЕКИСТАН","short_name_ua":"УЗБЕКИСТАН","short_name_en":"UZBEKISTAN","short_name_ru":"УЗБЕКИСТАН","code":"000000214","last_change":"2017-05-11T21:10:00.000+03:00","status":"1"}
```

### getCountryId($id)

[](#getcountryidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getCountryId(213));
```

### getAreaList()

[](#getarealist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getAreaList());
```

### getAreaId($id)

[](#getareaidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getAreaId(1));
```

### getAreaFilter($data = array())

[](#getareafilterdata--array)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getAreaFilter(array(

    // 'id'        => 1,
    'area_name' => 'В',
    // 'country_id' => '215',

)));
```

### getDistrictList()

[](#getdistrictlist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getDistrictList());
```

### getDistrictId($id)

[](#getdistrictidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getDistrictId(241));
```

### getDistrictFilter($data = array())

[](#getdistrictfilterdata--array)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getDistrictFilter(array(

    // 'id' => '241',
    // 'country_id' => '215',
    'district_name' => 'Бере',

)));
```

### getLocalityList()

[](#getlocalitylist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_key');

print_r($intime->getLocalityList());
```

### getLocalityId($id)

[](#getlocalityidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getLocalityId(100));
```

### getLocalityFilter($data = array())

[](#getlocalityfilterdata--array)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getLocalityFilter(array(

    // 'id' => 328,
    // 'country_id' => 215,
    // 'area_id' => 14,
    'district_id' => 416,
    // 'locality_name' => 'Сково',

)));
```

### getBranchList()

[](#getbranchlist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBranchList());
```

### getBranchId($id)

[](#getbranchidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBranchId(328));
```

### getBranchFilter($data = array())

[](#getbranchfilterdata--array)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBranchFilter(array(

    // 'id' => 328,
    // 'country_id' => 215,
    // 'area_id' => 15,
    // 'district_id' => 40,
    // 'locality_id' => 39,
    'branch_name' => 'Воло',

)));
```

### getGoodsDescList()

[](#getgoodsdesclist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getGoodsDescList());
```

### getGoodsDescId($id)

[](#getgoodsdescidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getGoodsDescList());
```

### getBoxList()

[](#getboxlist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBoxList());
```

### getBoxId($id)

[](#getboxidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBoxId(50));
```

### declarationCreate($data = array())

[](#declarationcreatedata--array)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r(

	$intime->declarationCreate(

		[

			...

		]

	)

);
```

### getBranchWorkList()

[](#getbranchworklist)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBranchWorkList());
```

### getBranchWorkId($id)

[](#getbranchworkidid)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getBranchWorkId(200));
```

### declStatus($number)

[](#declstatusnumber)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->declStatus('NUMBER_TTN'));
```

### getTTN($number)

[](#getttnnumber)

```
use InTime\InTime3;

include_once 'vendor/autoload.php';

$intime = new InTime3('API_KEY');

print_r($intime->getTTN('NUMBER_TTN'));
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~288 days

Total

4

Last Release

2265d ago

PHP version history (2 changes)v1.0PHP &gt;=5.6

v1.2.1PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![martinjack](https://avatars.githubusercontent.com/u/11950689?v=4)](https://github.com/martinjack "martinjack (75 commits)")[![Pashkinz92](https://avatars.githubusercontent.com/u/4114995?v=4)](https://github.com/Pashkinz92 "Pashkinz92 (2 commits)")

---

Tags

apideliveryintimelibrary

### Embed Badge

![Health badge](/badges/jackmartin-api3intime/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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