Download the PHP package ngugijames/metropol without Composer

On this page you can find all versions of the php package ngugijames/metropol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package metropol

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)

About Metropol-CRB

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

http://metropol.co.ke/

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

Detailed Example

You can override all the options used when calling the api by calling the setter methods on the Metropol object

 <?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


All versions of metropol with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ^6.3
nesbot/carbon Version ^1.22
psr/log Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ngugijames/metropol contains the following files

Loading the files please wait ....