PHPackages                             exbico/underwriting-api-client - 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. exbico/underwriting-api-client

ActiveLibrary[API Development](/categories/api)

exbico/underwriting-api-client
==============================

The Exbico Underwriting PHP Client Library enables you to work with Exbico Underwriting API on your server.

1.5.0(4y ago)1152MITPHPPHP ^7.3 || ^8.0

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/exbico/exbico-underwriting-api-client)[ Packagist](https://packagist.org/packages/exbico/underwriting-api-client)[ RSS](/packages/exbico-underwriting-api-client/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

Exbico API Underwriting PHP Client
==================================

[](#exbico-api-underwriting-php-client)

Библиотека для работы с Exbico Underwriting API.

Установка
---------

[](#установка)

```
composer require exbico/underwriting-api-client

```

Использование
-------------

[](#использование)

### Инициализация клиента

[](#инициализация-клиента)

```
use Exbico\Underwriting\Client;
use Exbico\Underwriting\ApiSettings;

$apiSettings = new ApiSettings('EBC_API_TOKEN');
$client = new Client($apiSettings);
```

### Получение стоимости отчета

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

```
use Exbico\Underwriting\Dto\V1\Request\ReportPriceRequestDto;

$reportPriceRequestDto = new ReportPriceRequestDto();
$reportPriceRequestDto->setReportType('credit-rating-nbch');
$reportPriceRequestDto->setLeadId(15);

$reportPriceDto = $client->reports()->reportPrice()->getReportPrice($reportPriceRequestDto);
$reportPrice = $reportPriceDto->getPrice();
```

### Запрос кредитного рейтинга НБКИ по ФИО и паспортным данным

[](#запрос-кредитного-рейтинга-нбки-по-фио-и-паспортным-данным)

```
use Exbico\Underwriting\Dto\V1\Request\DocumentWithIssueDateDto;
use Exbico\Underwriting\Dto\V1\Request\PersonWithBirthDateDto;
use Exbico\Underwriting\Dto\V1\Request\IncomeDto;

// Document data
$document = new DocumentWithIssueDateDto();
$document->setNumber('333222');
$document->setSeries('6500');
$document->setIssueDate('2010-02-10');

// Person data
$person = new PersonWithBirthDateDto();
$person->setFirstName('Иван');
$person->setLastName('Иванов');
$person->setPatronymic('Иванович');
$person->setBirthDate('1990-01-01');

$income = new IncomeDto();
$income->setMonthlyIncome(70000);

$reportStatus = $client->reports()->creditRatingNbch()->requestReport($person, $document, $income);
$requestId = $reportStatus->getRequestId(); // 21320130
$statusLabel = $reportStatus->getStatus(); // 'inProgress'
```

### Запрос кредитного рейтинга НБКИ по ID лида и паспортным данным

[](#запрос-кредитного-рейтинга-нбки-по-id-лида-и-паспортным-данным)

```
use Exbico\Underwriting\Dto\V1\Request\DocumentWithIssueDateDto;
use Exbico\Underwriting\Dto\V1\Request\IncomeDto;

// Document data
$document = new DocumentWithIssueDateDto();
$document->setNumber('333222');
$document->setSeries('6500');
$document->setIssueDate('2010-02-10');

$income = new IncomeDto();
$income->setMonthlyIncome(70000);

$leadId = 12345; // Exbico Lead Id

$reportStatus = $client->reports()->creditRatingNbch()->requestLeadReport($leadId, $document, $income);
$requestId = $reportStatus->getRequestId(); // 21320130
$statusLabel = $reportStatus->getStatus(); // 'inProgress'
```

### Запрос скоринга по ФИО, дате рождения и паспортным данным

[](#запрос-скоринга-по-фио-дате-рождения-и-паспортным-данным)

```
use Exbico\Underwriting\Dto\V1\Request\DocumentWithIssueDateDto;
use Exbico\Underwriting\Dto\V1\Request\PersonWithBirthDateDto;

// Document data
$document = new DocumentWithIssueDateDto();
$document->setNumber('333333');
$document->setSeries('5555');
$document->setIssueDate('2020-10-20');

// Person data
$person = new PersonWithBirthDateDto();
$person->setFirstName('Иван');
$person->setLastName('Иванов');
$person->setPatronymic('Иванович');
$person->setBirthDate('2000-12-12');

$reportStatus = $client->reports()->scoring()->requestReport($person, $document);
$requestId = $reportStatus->getRequestId(); // 21320130
$statusLabel = $reportStatus->getStatus(); // 'inProgress'
```

### Запрос скоринга по ID лида

[](#запрос-скоринга-по-id-лида)

```
$leadId = 12345; // Exbico Lead Id

$reportStatus = $client->reports()->scoring()->requestLeadReport($leadId);
$requestId = $reportStatus->getRequestId(); // 21320130
$statusLabel = $reportStatus->getStatus(); // 'inProgress'
```

### Запрос скоринга по ID лида и паспортным данным

[](#запрос-скоринга-по-id-лида-и-паспортным-данным)

```
// Exbico lead id
$leadId = 12345;

// Document data
$document = new DocumentWithIssueDateDto();
$document->setNumber('333333');
$document->setSeries('5555');
$document->setIssueDate('2020-10-20');

$reportStatus = $client->reports()->scoring()->requestLeadReport($leadId, $document);
$requestId = $reportStatus->getRequestId(); // 21320130
$statusLabel = $reportStatus->getStatus(); // 'inProgress'
```

### Получение статуса подготовки отчета

[](#получение-статуса-подготовки-отчета)

```
$requestId = 21320130;
$reportStatus = $client->reports()->reportStatus()->getReportStatus($requestId);
$statusLabel = $reportStatus->getStatus(); // 'success'
```

### Получение отчета кредитного рейтинга НБКИ

[](#получение-отчета-кредитного-рейтинга-нбки)

```
// ... Check status of report is 'success'
$requestId = 21320130;
$filename = 'report.pdf';
$client->reports()->creditRatingNbch()->downloadPdfReport($requestId, $filename);
```

### Получение отчета по продукту "Скоринг"

[](#получение-отчета-по-продукту-скоринг)

```
// ... Check status of report is 'success'
$requestId = 21320130;
$filename = 'report.pdf';
$client->reports()->scoring()->downloadPdfReport($requestId, $filename);
```

Примеры использования находятся в папке `examples`.

Тесты
-----

[](#тесты)

```
./vendor/bin/phpunit tests

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~17 days

Total

8

Last Release

1669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bfae1243a72753474bdf74fc532d06c06b49499e4ec689986c0c58c1c6cdf80?d=identicon)[Exbico](/maintainers/Exbico)

---

Top Contributors

[![dan-on](https://avatars.githubusercontent.com/u/7466036?v=4)](https://github.com/dan-on "dan-on (10 commits)")

---

Tags

apiExbicounderwriting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/exbico-underwriting-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/exbico-underwriting-api-client/health.svg)](https://phpackages.com/packages/exbico-underwriting-api-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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