Download the PHP package tumainimosha/credit-info without Composer

On this page you can find all versions of the php package tumainimosha/credit-info. 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 credit-info

Credit Info (TZ) API Wrapper for Laravel

[![Latest Stable Version](https://poser.pugx.org/tumainimosha/credit-info/v/stable)](https://packagist.org/packages/tumainimosha/credit-info) [![License](https://poser.pugx.org/tumainimosha/credit-info/license)](https://packagist.org/packages/tumainimosha/credit-info) [![Total Downloads](https://poser.pugx.org/tumainimosha/credit-info/downloads)](https://packagist.org/packages/tumainimosha/credit-info)

The Unofficial Credit Info Tanzania API wrapper for Laravel.

Installation

Install via composer

Publish Configuration File

Optional! Publish config file only if you wish to customize the default package config.

Configuration

Authentication

Configure your api username and password in .env file as follows

Apart from authentication configurations, the following remaining configurations are optional.

For basic usage jump straight to Usage Section

URL

The package config file comes with default API url pointing to production.

To point to test environment set the CREDIT_INFO_WSDL key in your .env file to point to test url given. (See below)

Remember

Response Caching

The package by default caches API response from Credit Info to speed up subsequent requests for the same data.

You can control this feature by setting the CREDIT_INFO_CACHE_TTL value in minutes in your .env. (See below)

By default data is cached for 24 hours = 1440 minutes

Set the value to zero(0) to completely disable caching.

WSDL Caching

Default behaviour of PHP Soap Client is to Cache WSDL files for improved performance.

However, during development you may require for debugging reasons to disable WSDL caching of the soap client.

To do so set the CREDIT_INFO_CACHE_WSDL key in your .env file to false (See below)

Caution: Disabling WSDL caching will significantly slow down performance. Please remember to always revert this option to true after you are done debugging.

Usage

  1. Vehicle Report
  2. Driving License Report
  3. National Id Report
  4. Exception Handling

Vehicle Report

Method getVehicleReport() queries vehicle information by Vehicle Registration ID

Driving License Report

Method getDrivingLicenseReport() queries drivers license information by Driving License Number

National Id Report

Method getNationalIdReport() queries an individual information by National Id Number

Exception Handling

The above methods throws the following exceptions

Exception Condition
CreditInfo\Exceptions\Exception This is the package's base exception. All exceptions from this library inherit from it.

*** This should be caught last as a catch-all statement.
CreditInfo\Exceptions\InvalidReferenceNumberException Thrown if supplied reference number fails validation requirements.
CreditInfo\Exceptions\DataNotFoundException Thrown if no data found for given reference number
CreditInfo\Exceptions\TimeoutException Thrown if request timeouts


See usage below with exception catching

TODO

Security

If you discover any security related issues, please email Me instead of using the issue tracker.

Credits

This package is bootstrapped with the help of melihovv/laravel-package-generator.


All versions of credit-info with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-json Version *
ext-simplexml Version *
ext-soap Version *
illuminate/support Version ~5.7.0|~5.8.0|^6.0|^7.0|^8.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 tumainimosha/credit-info contains the following files

Loading the files please wait ....