cvar1984/liteotp

This package is abandoned and no longer maintained. No replacement package was suggested.

quick spam sms otp

Fund package maintenance!
www.paypal.me/Cvar1984

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 54

Watchers: 14

Forks: 20

Open Issues: 1

Type:application

2.1.0 2020-06-29 14:06 UTC

This package is auto-updated.

Last update: 2023-01-27 06:06:23 UTC


README

LiteOTP is a Simpe OTP API Client,

  • Simple to use
  • Multi providers
  • Asyncronous
  • Reusable
  • Colorfull

Installation

requires php7 to run.

Install the dependencies and software.

$ 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

Exaxmple class usage

<?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;
}

Todo

  • Add more API
  • Support international phone number

License

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/.