Download the PHP package artjoker/laravel-ubki without Composer
On this page you can find all versions of the php package artjoker/laravel-ubki. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artjoker/laravel-ubki
More information about artjoker/laravel-ubki
Files in artjoker/laravel-ubki
Package laravel-ubki
Short Description Package for integration UBKI
License MIT
Homepage https://github.com/artjoker/laravel-ubki
Informations about the package laravel-ubki
Laravel-Ubki
Украинское бюро кредитных историй (УБКИ) занимается сбором, хранением, обработкой и предоставлением кредитных историй. УБКИ получает информацию о заемщиках от банков, страховых компаний, лизинговых компаний, кредитных союзов и других финансовых институтов. Информация передается на добровольной основе и только при наличии письменного согласия заемщика.
Для автоматизации взаимодействия с УБКИ существует web-сервис, который принимает запросы, обрабатывает и выдает ответ в зависимости от типа запроса.
This package allows you to simply and easily work with the web-service UBKI.
Migration to version 3
In this version we added possibility to use two UBKI accounts.
To use this possibility you should update your config file and add new migration.
Before publishing config you should remove previous config file.
Next, you need to run migrations:
add environment variables (.env
)
For switching between accounts you should add to params:
-
to select second account
- to select main account
if you not select what account to use, last used account will be executed.
Installation
You can install this package via Composer:
Next, you need to run migrations:
Set environment variable (.env
)
Usage
Add IntegratorUbki
-trait to the model with client data:
Set the necessary the mapping variables in config/ubki.php
:
This map establishes the correspondence between the attributes of your model and the required query fields in UBKI.
Add a new method ubkiAttributes()
to the class to add the necessary attributes and fill them with data:
You can use other ways to create custom attributes that you specified in 'model_data'
(config/ubki.php
).
Now, you can get data from UBKI:
$result['response']
- xml response from UBKI (standard report).
You can also pass parameters:
$params['report']
- report alias, if you need other reports;$params['request_id']
- your request ID (if necessary);$params['lang']
- search language;$params['delete_all_history']
- set true if you want delete all history;
You can send the loan data to UBKI:
$params
- will be passed to the ubkiAttributes() method in the model.
Change log
Please see the changelog for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.