Unofficial Motor Vehicle Registration Information Search Portal Library

1.0.0 2016-12-15 15:41 UTC

This package is auto-updated.

Last update: 2024-11-07 18:38:19 UTC


README

Latest Stable Version License Build Status Coveralls Quality Score Total Downloads

Mvrd Library for PHP

Head over to lsmvaapvs.org and input a valid Nigerian Plate Number. Your result would be like so:

Plate Number Result

Installation

PHP 5.4+ or HHVM 3.3+, and Composer are required.

To get the latest version of mvrd, simply add the following line to the require block of your composer.json file.

"unicodeveloper/mvrd": "1.0.*"

You'll then need to run composer install or composer update to download it and have the autoloader updated.

Usage

Available methods for use right now are:

/**
 * Get Vehicle Details
 * @param  none
 * @return array
 */
$mvrd->getData();

Grab the Vehicle Details

<?php

// include your composer dependencies
require_once 'vendor/autoload.php';

use Unicodeveloper\Mvrd\Mvrd;

$plateNumber = 'xxxxxxxxxxxxxx';

$mvrd = new Mvrd($plateNumber);
$mvrd->getData();

Response Info for Developer

Response

Grab specific Vehicle Detail

<?php

// include your composer dependencies
require_once 'vendor/autoload.php';

use Unicodeveloper\Mvrd\Mvrd;

$plateNumber = 'xxxxxxxxxxxxxx'; //Use correct vehicle plate number, don't try this at home.

$mvrd = new Mvrd($plateNumber);
$mvrd->getData()['Color'];

Vehicle Information that can be acquired are;

  • PlateNumber
  • OwnerName
  • Color
  • Model
  • ChasisNumber
  • VehicleStatus
  • IssueDate
  • ExpiryDate

Please note that the array keys are case sensitive and can only be used as shown above.

Response Info for Developer

mvrd

Grab the Vehicle Details with Wrong or Invalid Plate Number

<?php

// include your composer dependencies
require_once 'vendor/autoload.php';

use Unicodeveloper\Mvrd\Mvrd;

$plateNumber = 'xxxxxxxxxxxxxx';

$mvrd = new Mvrd($plateNumber);
$mvrd->getData();

Response Info for Developer

Check SMS Credits Response

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to follow me on twitter!

Thanks! Prosper Otemuyiwa.

License

The MIT License (MIT). Please see License File for more information.