PHP code example of nguyenanhung / script-check-3g-viettel

1. Go to this page and download the library: Download nguyenanhung/script-check-3g-viettel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nguyenanhung / script-check-3g-viettel example snippets


 
guyenanhung\VnTelcoViettel\Viettel;
use \nguyenanhung\VnTelcoViettel\Ip;

$ip = new Ip();
$viettel = new Viettel();


 
guyenanhung\VnTelcoViettel\Viettel;
use \nguyenanhung\VnTelcoViettel\Ip;

$ip = new Ip();
$viettel = new Viettel();




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