PHPackages                             jackmartin/laravel-justin - 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/laravel-justin

ActiveLibrary[API Development](/categories/api)

jackmartin/laravel-justin
=========================

Laravel package Justin API

1.2.1(6y ago)12.7k1MITPHP

Since Mar 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/martinjack/laravel-justin)[ Packagist](https://packagist.org/packages/jackmartin/laravel-justin)[ RSS](/packages/jackmartin-laravel-justin/feed)WikiDiscussions master Synced 4d ago

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

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/2052f7def79f5e150098c024032fa67e7cc40c3716a65c7a1d7cf2c40ffc1e48/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f6c61726176656c2d6a757374696e2f762f737461626c65)](https://packagist.org/packages/jackmartin/laravel-justin) [![Total Downloads](https://camo.githubusercontent.com/14941d857ca8729a838cb9635f5ec06e95d2bec167591da30dfb0781f004b0f2/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f6c61726176656c2d6a757374696e2f646f776e6c6f616473)](https://packagist.org/packages/jackmartin/laravel-justin) [![License](https://camo.githubusercontent.com/3a19b4976d3e43b28a719d3e5ce79440895b344ea88163e7bbc506d744ae48e6/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f6c61726176656c2d6a757374696e2f6c6963656e7365)](https://packagist.org/packages/jackmartin/laravel-justin)

Laravel пакет для работы с API [Justin](https://justin.ua)

> Read this in other language: [English](README.en.md), [Русский](README.md), [Український](README.ua.md)

> [Wiki - Описание работы библиотеки](https://github.com/martinjack/justin/wiki)

> [Justin API library](https://github.com/martinjack/justin)

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

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

[API documentation](https://justin.ua/api/api_justin_documentation.pdf "PDF")

[Openapi](http://openapi.justin.ua/ "OPENAPI")

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

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

- PHP 5.6 или выше
- Composer
- Laravel
- Justin

Composer
========

[](#composer)

```
composer require jackmartin/laravel-justin
```

Laravel настройка
-----------------

[](#laravel-настройка)

После установки пакета с помощью composer, зарегистрируйте сервис пакета в файле bootstrap/app.php:

```
JustinLaravel\JustinServiceProvider::class
```

Затем для быстрого вызов класса пакета, добавьте псевдоним в этот же файле:

```
'JustinLaravel' => JustinLaravel\Facades\JustinFacade::class,
```

Настройка параметров пакета
---------------------------

[](#настройка-параметров-пакета)

### Копирование файла настроек

[](#копирование-файла-настроек)

```
php artisan vendor:publish
```

Выбираем Tag: justin-laravel-config

или

```
php artisan vendor:publish --provider="JustinLaravel\JustinServiceProvider" --tag="justin-laravel-config"
```

Конфигурация пакета
===================

[](#конфигурация-пакета)

### Передать язык ответа сервера. По умолчанию: UA

[](#передать-язык-ответа-сервера-по-умолчанию-ua)

#### language

[](#language)

```
'language'        => 'UA'
```

### Песочница. По умолчанию: true

[](#песочница-по-умолчанию-true)

#### sandbox

[](#sandbox)

```
'sandbox'         => true
```

### Версия API. По умолчанию: v2

[](#версия-api-по-умолчанию-v2)

#### version

[](#version)

```
'version'         => 'v2'
```

### Версия Order API. По умолчанию: v1

[](#версия-order-api-по-умолчанию-v1)

#### orderVersion

[](#orderversion)

```
'orderVersion'    => 'v1'
```

### Тайм-аут, на возврат ответа от сервера. По умолчанию: 60 секунд

[](#тайм-аут-на-возврат-ответа-от-сервера-по-умолчанию-60-секунд)

#### timeout

[](#timeout)

```
'timeout'         => 60
```

### Тайм-аут, на подключение к серверу. По умолчанию: 60 секунд

[](#тайм-аут-на-подключение-к-серверу-по-умолчанию-60-секунд)

#### connect\_timeout

[](#connect_timeout)

```
'connect_timeout' => 60
```

### Часовой пояс. По умолчанию: UTC

[](#часовой-пояс-по-умолчанию-utc)

#### timezone

[](#timezone)

```
'timezone'        => 'UTC'
```

### Логин авторизации на сервер. По умолчанию: Exchange

[](#логин-авторизации-на-сервер-по-умолчанию-exchange)

#### auth\_login

[](#auth_login)

```
'auth_login'      => 'Exchange'
```

### Пароль авторизации на сервер. По умолчанию: Exchange

[](#пароль-авторизации-на-сервер-по-умолчанию-exchange)

#### auth\_password

[](#auth_password)

```
'auth_password'   => 'Exchange'
```

### Ключ API.

[](#ключ-api)

#### key

[](#key)

```
'key'             => ''
```

### Логин API.

[](#логин-api)

#### login

[](#login)

```
'login'           => ''
```

### Пароль API.

[](#пароль-api)

#### password

[](#password)

```
'password'        => ''
```

Основные методы API
===================

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

1. Настройка подключения
    - [\_\_construct](https://github.com/martinjack/justin#__construct)
2. Получить текущий статус заказа:
    - [currentStatus](https://github.com/martinjack/justin#currentStatus)
3. Получить список областей
    - [listRegions](https://github.com/martinjack/justin#listregions)
4. Получить список областных районов
    - [listAreasRegion](https://github.com/martinjack/justin#listareasregion)
5. Получить список населенных пунктов
    - [listCities](https://github.com/martinjack/justin#listcities)
6. Получить список районов населенных пунктов
    - [listCityRegion](https://github.com/martinjack/justin#listcityregion)
7. Получить список улиц города
    - [listStreetsCity](https://github.com/martinjack/justin#liststreetscity)
8. Получить список типов отделений
    - [branchTypes](https://github.com/martinjack/justin#branchtypes)
9. Получить информацию про отделение
    - [getBranch](https://github.com/martinjack/justin#getBranch)
10. Получить список отделений. Старый метод
    - [listDepartments](https://github.com/martinjack/justin#listdepartments)
11. Получить список отделений.
    - [listDepartmentsLang](https://github.com/martinjack/justin#listdepartmentslang)
12. Получить расписание работы отделения
    - [branchSchedule](https://github.com/martinjack/justin#branchschedule)
13. Получить ближайшее отделение по адресу
    - [getNeartDepartment](https://github.com/martinjack/justin#getNeartDepartment)
14. Создать новый заказ(Отправление)
    - [createOrder](https://github.com/martinjack/justin#createOrder)
15. Отмена заказа
    - [cancelOrder](https://github.com/martinjack/justin#cancelorder)
16. Получить список статусов заказа
    - [listStatuses](https://github.com/martinjack/justin#liststatuses)
17. Получить ключ торговца(senderID)
    - [keySeller](https://github.com/martinjack/justin#keyseller)
18. Получить историю движения отправления
    - [trackingHistory](https://github.com/martinjack/justin#trackingHistory)
19. Получить историю статусов заказа. Старый метод
    - [getStatusHistory](https://github.com/martinjack/justin#getstatushistory)
20. Получить историю статусов заказа.
    - [getStatusHistoryF](https://github.com/martinjack/justin#getstatushistoryf)
21. Получить список заказов за указанный период
    - [listOrders](https://github.com/martinjack/justin#listorders)
22. Получить информацию о заказе
    - [orderInfo](https://github.com/martinjack/justin#orderinfo)
23. Создать стикер заказа
    - [createSticker](https://github.com/martinjack/justin#createsticker)

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

[](#примеры)

### listRegions()

[](#listregions)

```
print_r(

    \JustinLaravel::listRegions()->getData()
    // (new \JustinLaravel())->listRegions()->getData()

);
```

### listCities()

[](#listcities)

```
print_r(

    \JustinLaravel::listCities()->getData()
    // (new \JustinLaravel())->listCities()->getData()

);
```

### getBranch()

[](#getbranch)

```
print_r(

    (new JustinLaravel())->getBranch('220')->getData()
    // (new JustinLaravel())->getBranch('220')->fields()->number()
    // (new JustinLaravel())->getBranch('220')->fields()->getType()
    // (new JustinLaravel())->getBranch('220')->fields()->address()
    // (new JustinLaravel())->getBranch('220')->fields()->getPosition()
    // (new JustinLaravel())->getBranch('220')->fields()->getDescr()
    // (new JustinLaravel())->getBranch('220')->fields()->scheduDescr()

);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~18 days

Total

4

Last Release

2553d ago

### 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 (15 commits)")[![burcev-alex](https://avatars.githubusercontent.com/u/11717148?v=4)](https://github.com/burcev-alex "burcev-alex (1 commits)")

---

Tags

apideliveryjustinlaravelpackage

### Embed Badge

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

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

###  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)[knplabs/github-api

GitHub API v3 client

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

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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