Mvrd library - Grab all the Nigerian Vehicles Data!!!
, (*1)
Mvrd Library for PHP, (*2)
Head over to lsmvaapvs.org and input a valid Nigerian Plate Number. Your result would be like so:, (*3)
, (*4)
Installation
PHP 5.4+ or HHVM 3.3+, and Composer are required., (*5)
To get the latest version of mvrd, simply add the following line to the require block of your composer.json
file., (*6)
"unicodeveloper/mvrd": "1.0.*"
You'll then need to run composer install
or composer update
to download it and have the autoloader updated., (*7)
Usage
Available methods for use right now are:, (*8)
/**
* 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, (*9)
, (*10)
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;, (*11)
- 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., (*12)
Response Info for Developer, (*13)
, (*14)
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, (*15)
, (*16)
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*17)
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!, (*18)
Don't forget to follow me on twitter!, (*19)
Thanks!
Prosper Otemuyiwa., (*20)
License
The MIT License (MIT). Please see License File for more information., (*21)