PHP code example of cvar1984 / liteotp
1. Go to this page and download the library: Download cvar1984/liteotp 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/ */
cvar1984 / liteotp example snippets
// test.php
Otp\Otp;
try {
$numberPhone='+628xxxxxxxx';
Otp::tokopedia($numberPhone, true); // verbose
Otp::jdid($numberPhone);
Otp::phd($numberPhone);
} catch(Exception $e) {
echo $e->xdebug_message;
}
sh
$ 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