ultrapraise / lara-termii
Laravel Termii 包 - https://www.termii.com
dev-master
2023-03-12 07:40 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^8.4|^9.0
This package is not auto-updated.
Last update: 2024-09-27 19:50:02 UTC
README
Termii Laravel 包
Lara-Termii 帮助您在 Laravel 应用中直接设置、测试和管理您的 Termii 集成。
安装
您可以通过 composer 安装此包
composer require ultrapraise/lara-termii
使用方法
声明类实例
- 示例
$termii = new \Zeevx\LaraTermii\LaraTermii("YOUR-TERMII-API-KEY");
在 Termii 检查您的余额
- 您可以在 Termii 检查您的余额。
- 运行
$termii->balance()
短信、语音和 WhatsApp 通道发送的消息报告
- 您可以在短信、语音和 WhatsApp 通道检查发送的消息报告。
- 运行
$termii->history()
检测号码是否为虚假号码或已转网至新网络
- 您可以在 Termii 检查号码是否为虚假号码或已转网至新网络。
- 运行
$termii->status(int $phone_number, string $country_code)
并传递适当的参数
验证电话号码并自动检测其状态
- 您可以在 Termii 验证电话号码并自动检测其状态。
- 运行
$termii->search(int $phone_number)
并传递适当的参数
检索所有已注册发送者 ID 的状态
- 您可以在 Termii 检索所有已注册发送者 ID 的状态。
- 运行
$termii->allSenderId()
请求新的发送者 ID
- 您可以在 Termii 请求新的发送者 ID。
- 运行
$termii->submitSenderId(string $sender_id, string $use_case, string $company)
并传递适当的参数
发送消息
- 您可以在 Termii 发送消息。
- 运行
$termii->sendMessage(int $to, string $from, string $sms, string $channel = "generic", bool $media = false, string $media_url = null, string $media_caption = null)
并传递适当的参数
发送 OTP
- 您可以在 Termii 发送 OTP。
- 运行
$termii->sendOTP(int $to, string $from, string $message_type, int $pin_attempts, int $pin_time_to_live, int $pin_length, string $pin_placeholder, string $message_text, string $channel = "generic")
并传递适当的参数
发送语音 OTP
- 您可以在 Termii 发送 OTP。
- 运行
$termii->sendVoiceOTP(int $to, int $pin_attempts, int $pin_time_to_live, int $pin_length)
并传递适当的参数
发送语音电话
- 您可以在 Termii 发送 OTP。
- 运行
$termii->sendVoiceCall(int $to, int $code)
并传递适当的参数
OTP 验证
- 您可以在 Termii 验证或验证 OTP。
- 运行
$termii->verifyOTP(string $pinId, string $pin)
并传递适当的参数
发送 In-App OTP
- 您可以在 Termii 发送 In-App OTP。
- 运行
$termii->sendInAppOTP(int $to, int $pin_attempts, int $pin_time_to_live, int $pin_length, string $pin_type)
并传递适当的参数
安全
如果您发现任何与安全相关的问题,请通过电子邮件 adamsohiani@gmail.com 联系,而不是使用问题跟踪器。
致谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件。