Download the PHP package codejutsu1/laravel-vtung without Composer
On this page you can find all versions of the php package codejutsu1/laravel-vtung. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codejutsu1/laravel-vtung
More information about codejutsu1/laravel-vtung
Files in codejutsu1/laravel-vtung
Package laravel-vtung
Short Description An Elegant Laravel Package for vtu.ng
License MIT
Homepage https://github.com/codejutsu1/laravel-vtung
Informations about the package laravel-vtung
laravel-vtung
An Elegant Laravel Package for vtu.ng
Installation
PHP 8.2+ and Composer are required.
-
Install the package via composer:
-
Optional
you can publish the config file via this command:A configuration file named
vtung.php
will be placed in theconfig
folder of your laravel application:
Usage
Open your .env
file and add your username and password:
[!IMPORTANT] You must have a reseller account with vtu.ng to use our API.
Services
- Wallet Balance
- Airtime
- Data
- Customer Verification
- CableTv
- Electricity
- Format Number
- Network Provider
Check your wallet balance
Buy Airtime
It requires 3 parameters as an array to make airtime purchase from vtu.ng
Format Number
You can also format Nigerian Number with +234 code to local number.
Network Provider
This package gives you the power to get the network provider of any number in Nigeria.
[!NOTE] You can always use the class
Vtu::buyAirtime()
or the helpervtu()->buyAirtime()
Buy Data
It requires 3 parameters as an array to make data purchase from vtu.ng
[!IMPORTANT] You can get the data
variation id
from the vtu.ng
Verify Customers using their meter number and IUC/Smartcard Number
It requires 3 parameters as an array to verify a customer from vtu.ng
[!IMPORTANT] You can get the
service_id
from vtu.ng. You can verify EEDC customers using theservice_id
asenugu-electric
but you can't pay EEDC Electricity Bills with vtu.ng.
Purchase/Subscribe CableTv
It requires 4 parameters as an array to purchase or subscribe CableTv from vtu.ng
[!IMPORTANT] You can get the
service_id
andvariation_id
from vtu.ng.
Pay Electricity Bills
To purchase, it requires 5 parameters as an array to pay electricity bills from vtu.ng
[!IMPORTANT] As usual, you can get the
service_id
andvariation_id
from vtu.ng.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Feel free to submit Issues (for bugs or suggestions) and Pull Requests(to the 1.x branch).
Security Vulnerabilities
If you discover a security vulnerability within this package, please send an email to Daniel Dunu at [email protected]. All security vulnerabilities will be promptly addressed..
Credits
- Daniel Dunu
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-vtung with dependencies
laravel/framework Version ^9.0 || ^10.0 || ^11.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^9.0 || ^10.0 ||^11.0