LiteOTP is a Simpe OTP API Client,
- Simple to use
- Multi providers
- Asyncronous
- Reusable
- Colorfull
requires php7 to run.
$ pkg install php -y
$ php -a
php > copy('https://raw.githubusercontent.com/Cvar1984/LiteOTP/master/build/lite', 'lite');
php > chmod(0755, 'lite');
php > rename('lite', $_SERVER['PREFIX'] . '/bin/lite');
php > exit;
$ lite +628xxxxx
$ lite ./test_list.txt
<?php
// test.php
require __DIR__ . '/vendor/autoload.php';
use Cvar1984\LiteOtp\Otp;
try {
$numberPhone='+628xxxxxxxx';
Otp::tokopedia($numberPhone, true); // verbose
Otp::jdid($numberPhone);
Otp::phd($numberPhone);
} catch(Exception $e) {
echo $e->xdebug_message;
}
- Add more API
- Support international phone number
Copyright (C) Cvar1984, 2019
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.