unicodeveloper / mvrd
Unofficial Motor Vehicle Registration Information Search Portal Library
Requires
- php: ^5.4|^7.0
- guzzlehttp/guzzle: 5.*|6.*
- symfony/css-selector: ^2.8
- symfony/dom-crawler: ^3.2
- vlucas/phpdotenv: ^2.2
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: 4.*
- satooshi/php-coveralls: ^0.7.0
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2024-10-07 18:34:22 UTC
README
Mvrd Library for PHP
Head over to lsmvaapvs.org and input a valid Nigerian Plate Number. Your result would be like so:
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
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
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
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.