Download the PHP package arttiger/laravel-ubki without Composer
On this page you can find all versions of the php package arttiger/laravel-ubki. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arttiger/laravel-ubki
More information about arttiger/laravel-ubki
Files in arttiger/laravel-ubki
Package laravel-ubki
Short Description Laravel package for integration with UBKI
License MIT
Homepage https://github.com/arttiger/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.
Installation
Install the package via composer:
Next, you need to run migrations:
Configuration
In order to edit the default configuration you may execute:
After that, config/ubki.php
will be created.
Environment
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.
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.
Change log
Please see the changelog for more information on what has changed recently.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
Please see the license file for more information.