nguyenanhung / script-check-3g-viettel
Library check 3g Viettel
v2.0.0
2018-10-06 08:53 UTC
Requires
- php: >=5.4
- mlocati/ip-lib: ^1.6
This package is auto-updated.
Last update: 2024-12-07 00:44:07 UTC
README
Script check 3G Viettel
Library detect carrier Vietnam telco: Viettel
Installation
Manual install
Step 1: Save library to your project
cd /your/to/path
wget https://github.com/nguyenanhung/Script-Check-3G-Viettel/archive/master.zip
unzip master.zip
Step 2: Init to Project
<?php require '/your/to/path/Viettel.php'; use \nguyenanhung\VnTelcoViettel\Viettel; use \nguyenanhung\VnTelcoViettel\Ip; $ip = new Ip(); $viettel = new Viettel();
Install with composer
Step 1: Install package
composer require nguyenanhung/script-check-3g-viettel
Step 2: Init to Project
<?php require '/your/to/path/vendor/autoload.php'; use \nguyenanhung\VnTelcoViettel\Viettel; use \nguyenanhung\VnTelcoViettel\Ip; $ip = new Ip(); $viettel = new Viettel();
How to Use
Example use
<?php require '/your/to/path/vendor/autoload.php'; use \nguyenanhung\VnTelcoViettel\Viettel; use \nguyenanhung\VnTelcoViettel\Ip; $ip = new Ip(); $viettel = new Viettel(); $getVersion = $viettel->getVersion(); // Print 2.0 $getCurrentIp = $ip->getIpAddress(); // Show Your IP $checkViettel = $viettel->isViettel(); // True if Viettel, False if not
Very easy and simple
Contact
If any quetion & request, please contact following infomation
From Hanoi with Love <3