2017 © Pedro Peláez
 

library hart

Hart Credit Reports for Laravel 5

image

tjphippen/hart

Hart Credit Reports for Laravel 5

  • Monday, August 31, 2015
  • by tjphippen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Hart Credit Reports for Laravel 5

Latest Stable Version Total Downloads - Packagist - GitHub, (*1)


Installation

Add the following to your composer.json file., (*2)

"tjphippen/hart": "0.1.*@dev"

Then run composer install or composer update to download and install., (*3)

You'll then need to register the service provider in your config/app.php file within providers., (*4)

'providers' => array(
    'Tjphippen\Hart\HartServiceProvider',
)

This package includes a auto registered facade which provides the static syntax for running/retrieving credit reports., (*5)

Create configuration file using artisan

$ php artisan vendor:publish

The configuration file will be published to config/hart.php which must be completed to make connections to the API. In order to use this package you must first have account credentials to access the API provided by Hart Software, (*6)


/** * Environment (development or production) */ 'env' => 'development', /** * Hart Account */ 'account' => '', /** * Hart Password */ 'passwd' => '', ...

Examples

Run Credit Report

You may send an array with the persons details like below, (*7)

Hart::getCredit(array(
   'name' => 'John Doe', 
   'address' => '123 Fake Street',
   'city' => 'Faketown',
   'state' => 'CA',
   'zip' => '55555',
   'dob' => '08/25/1991',
   'ssn' => '123456789',
   );

Or simply use an object returned by an Eloquent model., (*8)

$customer = Customer::findOrFail($customerId); // Model not included :P
Hart::getCredit($customer);

Get Previous Report by Token

$token = 'XXXXXXXXXXXXXX...';
Hart::getByToken(['token' => $token]);

Currently both functions return a full response object. I've added a chainable ->parse() method to return the following., (*9)

{
    "transaction": "995284100",
    "token": "F94OtZHJKthWudshcdnJI3YLRRwaappmIYo2Dp...",
    "score": 566,
    "reasons": [
        "Serious delinquency, and derogatory public record or collection files",
        "Number of accounts with delinquency",
        "Time since delinquency is too recent or unknown"
    ]
}

Or you can return a full SimpleXMLElement and parse to fit your needs., (*10)

Hart::getCredit($customer)->xml;

Change Log

v0.1.0

  • Released

The Versions

31/08 2015

dev-master

9999999-dev https://github.com/tjphippen/hart

Hart Credit Reports for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by TJ Phippen

credit score hart credit reports