2017 © Pedro Peláez
 

library metropol

Metropol CRB(Credit Reference Bureau) API wrapper

image

ngugijames/metropol

Metropol CRB(Credit Reference Bureau) API wrapper

  • Wednesday, July 25, 2018
  • by ngugijames
  • Repository
  • 1 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 5 Versions
  • 63 % Grown

The README.md

Metropol CRB

Warning: Abandoned. I no longer have the time to manage this repository. It is likely the Metropol API has changed.

Build Status [![Latest Stable Version](https://poser.pugx.org/ngugijames/metropol/v/stable)](https://packagist.org/packages/ngugijames/metropol) [![Daily Downloads](https://poser.pugx.org/ngugijames/metropol/d/daily)](https://packagist.org/packages/ngugijames/metropol) [![License](https://poser.pugx.org/ngugijames/metropol/license)](https://packagist.org/packages/ngugijames/metropol) , (*1)

About Metropol-CRB

Metropol CRB(Credit Reference Bureau) API wrapper. This is a simple PHP client to communicate with the Metropol CRB API., (*2)

http://metropol.co.ke/, (*3)

Installation

composer require ngugijames/metropol
composer install

Quick Example

 <?php 
    //get the composer autoloader, if necessary
    require_once '../vendor/autoload.php';

    use Ngugi\Metropol\Metropol;

    $metropolPublicKey='dshdhggdid';
    $metropolPrivateKey='UYGSYGA';
    $metropol=new Metropol($metropolPublicKey,$metropolPrivateKey);

    //verify ID number
    $result=$metropol->identityVerification($id_number); 

    //check deliquency status of an ID number for a loan amount
    $result=$metropol->deliquencyStatus($id_number, $loan_amount); 

    //check credit Info of an ID number for a loan amount
    $result=$metropol->creditInfo($id_number, $loan_amount); 

    //check consumer score of ID number
    $result=$metropol->consumerScore($id_number);

All methods return an array. Check the docs folder for sample results, (*4)

Detailed Example

You can override all the options used when calling the api by calling the setter methods on the Metropol object, (*5)

 <?php 
    //get the composer autoloader, if necessary
    require_once '../vendor/autoload.php';

    use Ngugi\Metropol\Metropol;

    $metropolPublicKey='dshdhggdid';
    $metropolPrivateKey='UYGSYGA';
    $metropol=new Metropol($metropolPublicKey,$metropolPrivateKey);

    //override all options
    $metropol=$metropol->withVersion('2.1')
    ->withPort(443)
    ->withPublicApiKey('NEW_PUB-KEY')
    ->withPrivateKey('NEW-PRIVATE-KEY');

    //verify ID number
    $result=$metropol->identityVerification($id_number); 

    //check deliquency status of an ID number for a loan amount
    $result=$metropol->deliquencyStatus($id_number, $loan_amount); 

    //check credit Info of an ID number for a loan amount
    $result=$metropol->creditInfo($id_number, $loan_amount); 

    //check consumer score of ID number
    $result=$metropol->consumerScore($id_number);

All methods return an array. Check the docs folder for sample results, (*6)

The Versions

25/07 2018

dev-master

9999999-dev

Metropol CRB(Credit Reference Bureau) API wrapper

  Sources   Download

MIT

The Requires

 

by :James Ngugi

crb metropol

25/07 2018

dev-ngugijames-patch-1

dev-ngugijames-patch-1

Metropol CRB(Credit Reference Bureau) API wrapper

  Sources   Download

MIT

The Requires

 

by :James Ngugi

crb metropol

13/12 2017

v1.1

1.1.0.0

Metropol CRB(Credit Reference Bureau) API wrapper

  Sources   Download

MIT

The Requires

 

by :James Ngugi

crb metropol

13/12 2017

dev-several-fixes

dev-several-fixes

Metropol CRB(Credit Reference Bureau) API wrapper

  Sources   Download

MIT

The Requires

 

by :James Ngugi

crb metropol

12/12 2017

v1.0

1.0.0.0

Metropol CRB(Credit Reference Bureau) API wrapper

  Sources   Download

MIT

The Requires

 

by :James Ngugi

crb metropol