nguyenanhung / script-check-3g-viettel
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-09-07 00:12:19 UTC
README
3G Viettel 脚本检查
库检测越南电信运营商:Viettel
安装
手动安装
步骤 1:将库保存到您的项目中
cd /your/to/path
wget https://github.com/nguyenanhung/Script-Check-3G-Viettel/archive/master.zip
unzip master.zip
步骤 2:初始化到项目
<?php require '/your/to/path/Viettel.php'; use \nguyenanhung\VnTelcoViettel\Viettel; use \nguyenanhung\VnTelcoViettel\Ip; $ip = new Ip(); $viettel = new Viettel();
使用 composer 安装
步骤 1:安装包
composer require nguyenanhung/script-check-3g-viettel
步骤 2:初始化到项目
<?php require '/your/to/path/vendor/autoload.php'; use \nguyenanhung\VnTelcoViettel\Viettel; use \nguyenanhung\VnTelcoViettel\Ip; $ip = new Ip(); $viettel = new Viettel();
如何使用
使用示例
<?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
非常简单易懂
联系
如有任何问题或请求,请联系以下信息
来自河内,爱你的 <3