Download the PHP package arttiger/laravel-scoring without Composer
On this page you can find all versions of the php package arttiger/laravel-scoring. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arttiger/laravel-scoring
More information about arttiger/laravel-scoring
Files in arttiger/laravel-scoring
Package laravel-scoring
Short Description Integration of scoring systems for Laravel
License MIT
Homepage https://github.com/arttiger/laravel-scoring
Informations about the package laravel-scoring
Laravel Scoring
Integration of scoring systems for Laravel. The package provides integration scoring systems:
- RiskTools
Installation
Install the package via composer:
Configuration
In order to edit the default configuration you may execute:
After that, config/scoring.php
will be created.
Environment
Set environment variable (.env
)
Usage
Get scoring data
You can get data from the scoring system as follows:
- 'risk_tools' - scoring system;
- $attributes - data (array) from the credit model according to the mapping of variables in
config/scoring.php
. This map establishes the correspondence between the attributes of your model and the required query fields in scoring system.
$result
- response from scoring system (array).
Send status of credit
Send status of credit to the scoring system as follows:
- 'risk_tools' - scoring system;
- $attributes - data (array) from the credit model according to the mapping of variables
Get the UBKI reports
Get the UBKI reports from the scoring system as follows:
- $public_id - ID of credit
Get pre-scoring data
You can get data from the pre-scoring system as follows:
- $social_number - Social number (INN) of client
Trait
Add ScoringTrait
-trait to the model with client data:
Add a new method scoringAttributes()
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/scoring.php
).
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.