wallacemyem/lara-termii
Composer 安装命令:
composer require wallacemyem/lara-termii
包简介
A Laravel Package for Termii - https://www.termii.com
关键字:
README 文档
README
Termii Laravel Package
Lara-Termii helps you Set up, test, and manage your Termii integration directly in your Laravel App.
Installation
You can install the package via composer:
composer require Wallacemyem/lara-termii
Configuration
- Add the service provider to
config/app.php(Laravel will auto-discover it in most cases):
'providers' => [ // ... Wallacemyem\LaraTermii\LaraTermiiServiceProvider::class, ], 'aliases' => [ // ... 'LaraTermii' => Wallacemyem\LaraTermii\Facades\LaraTermii::class, ],
- Publish the configuration file:
php artisan vendor:publish --provider="Wallacemyem\LaraTermii\LaraTermiiServiceProvider"
- Add your Termii API key to your
.envfile:
TERMII_API_KEY=your-api-key-here
Usage
You can use the facade or dependency injection:
// Using facade use Wallacemyem\LaraTermii\Facades\LaraTermii; LaraTermii::balance(); // Using dependency injection use Wallacemyem\LaraTermii\LaraTermii; public function someMethod(LaraTermii $termii) { $balance = $termii->balance(); }
Check your balance on Termii
- You can check your termii balance.
- Run
$termii->balance()
Reports for messages sent across the sms, voice & whatsapp channels
- You can check reports for messages sent across the sms, voice & whatsapp channels.
- Run
$termii->history()
Detect if a number is fake or has ported to a new network
- You can check if a number is fake or has ported to a new network.
- Run
$termii->numberStatus($phone_number, $country_code)and pass appropriate params
Verify phone numbers and automatically detect their status
- You can verify phone numbers and automatically detect their status.
- Run
$termii->searchNumber($phone_number)and pass appropriate params
Retrieve the status of all registered sender ID
- You can retrieve the status of all registered sender IDs.
- Run
$termii->getSenderIds()
Request a new sender ID
- You can request a new sender ID.
- Run
$termii->requestSenderId($sender_id, $usecase, $company)and pass appropriate params
Send Message
- You can a message.
- Run
$termii->sendMessage(int $to, string $from, string $sms, string $channel = "generic", bool $media = false, string $media_url = null, string $media_caption = null)and pass appropriate params
Send OTP
- You can send OTP
- Run
$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")and pass appropriate params
Send Voice OTP
- You can send OTP
- Run
$termii->sendVoiceOTP(int $to, int $pin_attempts, int $pin_time_to_live, int $pin_length)and pass appropriate params
Send Voice Call
- You can send OTP
- Run
$termii->sendVoiceCall(int $to, int $code)and pass appropriate params
OTP Validation
- You can verify or validate OTP
- Run
$termii->verifyOTP(string $pinId, string $pin)pass appropriate params
Send In-App OTP
- You can send In-App OTP
- Run
$termii->sendInAppOTP(int $to, int $pin_attempts, int $pin_time_to_live, int $pin_length, string $pin_type)and pass appropriate params
Sotel eSIMs API
- Coming soon
Security
If you discover any security related issues, please email wallacemyem@hotmail.com instead of using the issue tracker. This is a fork from https://github.com/zeevx/lara-termii and I have added more fixes to make it work.
Credits
License
The MIT License (MIT). Please see License File for more information.
wallacemyem/lara-termii 适用场景与选型建议
wallacemyem/lara-termii 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wallacemyem」 「lara-termii」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wallacemyem/lara-termii 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wallacemyem/lara-termii 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wallacemyem/lara-termii 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A modern Laravel package for the Termii messaging & OTP API - https://www.termii.com
Laravel Zoom package
A Laravel Package for Termii - https://www.termii.com
A Laravel Package for Termii SMS - https://www.termii.com
A Laravel Package for Termii - https://www.termii.com
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-06