|
| 1 | +# Mvrd library - Grab all the Nigerian Vehicles Data!!! |
| 2 | + |
| 3 | +[](https://packagist.org/packages/unicodeveloper/jusibe-php-lib) |
| 4 | +[](LICENSE.md) |
| 5 | + |
| 6 | +[](https://travis-ci.org/unicodeveloper/jusibe-php-lib) |
| 7 | +[](https://coveralls.io/github/unicodeveloper/jusibe-php-lib?branch=master) |
| 8 | +[](https://scrutinizer-ci.com/g/unicodeveloper/jusibe-php-lib) |
| 9 | +[](https://packagist.org/packages/unicodeveloper/jusibe-php-lib) |
| 10 | + |
| 11 | +> Jusibe Library for PHP |
| 12 | +
|
| 13 | +## Installation |
| 14 | + |
| 15 | +[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required. |
| 16 | + |
| 17 | +To get the latest version of mvrd, simply add the following line to the require block of your `composer.json` file. |
| 18 | + |
| 19 | +``` |
| 20 | +"unicodeveloper/mvrd": "1.0.*" |
| 21 | +``` |
| 22 | + |
| 23 | +You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated. |
| 24 | + |
| 25 | + |
| 26 | +## Usage |
| 27 | + |
| 28 | +Available methods for use right now are: |
| 29 | +```php |
| 30 | + |
| 31 | +/** |
| 32 | + * Get Vehicle Details |
| 33 | + * @param none |
| 34 | + * @return array |
| 35 | + */ |
| 36 | +$mvrd->getData(); |
| 37 | +``` |
| 38 | + |
| 39 | +### Send an SMS |
| 40 | + |
| 41 | +```php |
| 42 | + |
| 43 | +<?php |
| 44 | + |
| 45 | +// include your composer dependencies |
| 46 | +require_once 'vendor/autoload.php'; |
| 47 | + |
| 48 | +use Unicodeveloper\Mvrd\Mvrd; |
| 49 | + |
| 50 | +$plateNumber = 'xxxxxxxxxxxxxx'; |
| 51 | + |
| 52 | +$mvrd = new Mvrd($plateNumber); |
| 53 | +$mvrd->getData(); |
| 54 | + |
| 55 | +``` |
| 56 | + |
| 57 | +**Response** |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +### Check SMS Credits |
| 62 | + |
| 63 | +```php |
| 64 | + |
| 65 | +<?php |
| 66 | + |
| 67 | +// include your composer dependencies |
| 68 | +require_once 'vendor/autoload.php'; |
| 69 | + |
| 70 | +use Unicodeveloper\Jusibe\Jusibe; |
| 71 | + |
| 72 | +$publicKey = 'xxxxxxxxxxxxxx'; |
| 73 | +$accessToken = 'xxxxxxxxxxxxxx'; |
| 74 | + |
| 75 | +$jusibe = new Jusibe($publicKey, $accessToken); |
| 76 | + |
| 77 | +try { |
| 78 | + $response = $jusibe->checkAvailableCredits()->getResponse(); |
| 79 | + print_r($response); |
| 80 | +} catch(Exception $e) { |
| 81 | + echo $e->getMessage(); |
| 82 | +} |
| 83 | + |
| 84 | +``` |
| 85 | + |
| 86 | +**Response Info for Developer** |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +### Check Delivery Status |
| 91 | + |
| 92 | +```php |
| 93 | + |
| 94 | +<?php |
| 95 | + |
| 96 | +// include your composer dependencies |
| 97 | +require_once 'vendor/autoload.php'; |
| 98 | + |
| 99 | +use Unicodeveloper\Jusibe\Jusibe; |
| 100 | + |
| 101 | +$publicKey = 'xxxxxxxxxxxxxx'; |
| 102 | +$accessToken = 'xxxxxxxxxxxxxx'; |
| 103 | + |
| 104 | +$jusibe = new Jusibe($publicKey, $accessToken); |
| 105 | + |
| 106 | +try { |
| 107 | + $response = $jusibe->checkDeliveryStatus('8nb1wrgdjw')->getResponse(); |
| 108 | + print_r($response); |
| 109 | +} catch(Exception $e) { |
| 110 | + echo $e->getMessage(); |
| 111 | +} |
| 112 | + |
| 113 | +``` |
| 114 | + |
| 115 | +**Response Info for Developer** |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | +## Contributing |
| 120 | + |
| 121 | +Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities. |
| 122 | + |
| 123 | +## How can I thank you? |
| 124 | + |
| 125 | +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! |
| 126 | + |
| 127 | +Don't forget to [follow me on twitter](https://twitter.com/unicodeveloper)! |
| 128 | + |
| 129 | +Thanks! |
| 130 | +Prosper Otemuyiwa. |
| 131 | + |
| 132 | +## License |
| 133 | + |
| 134 | +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
0 commit comments