cvar1984 / liteotp
此包已弃用,不再维护。没有建议的替代包。
快速垃圾短信OTP
2.1.0
2020-06-29 14:06 UTC
Requires
- ext-bz2: *
- ext-curl: *
- amphp/parallel: ^1.4
- campo/random-user-agent: ^1.3
Requires (Dev)
- humbug/box: ^3.8
This package is auto-updated.
Last update: 2023-01-27 06:06:23 UTC
README
LiteOTP是一个简单的OTP API客户端,
- 易于使用
- 多服务提供商
- 异步
- 可重用
- 多彩
安装
需要php7运行。
安装依赖项和软件。
$ 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; }
待办事项
- 添加更多API
- 支持国际电话号码
许可证
版权(C)Cvar1984,2019
本程序是免费软件;您可以在自由软件基金会发布的GNU通用公共许可证的条款下重新分发和/或修改它;许可证的第2版,或者(根据您的选择)许可证的任何较新版本。
本程序是根据希望它有用的目的而分发的,但没有任何保证;甚至没有关于适销性或特定用途适用性的暗示保证。有关详细信息,请参阅GNU通用公共许可证。
您应该已经随本程序收到了GNU通用公共许可证的一个副本。如果没有,请参阅https://gnu.ac.cn/licenses/。