Mvrd Library for PHP
Head over to lsmvaapvs.org and input a valid Nigerian Plate Number. Your result would be like so:
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.
Available methods for use right now are:
/**
* Get Vehicle Details
* @param none
* @return array
*/
$mvrd->getData();
<?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
<?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
<?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
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
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.
The MIT License (MIT). Please see License File for more information.