Lara-Termii helps you Set up, test, and manage your Termii integration directly in your Laravel App.
You can install the package via composer:
composer require zeevx/lara-termii
- Example
$termii = new \Zeevx\LaraTermii\LaraTermii("YOUR-TERMII-API-KEY");
- You can check your termii balance.
- Run
$termii->balance()
- You can check reports for messages sent across the sms, voice & whatsapp channels.
- Run
$termii->history()
- You can check if a number is fake or has ported to a new network.
- Run
$termii->status(int $phone_number, string $country_code)
and pass appropriate params
- You can verify phone numbers and automatically detect their status.
- Run
$termii->search(int $phone_number)
and pass appropriate params
- You can retrieve the status of all registered sender ID.
- Run
$termii->allSenderId()
- You can request a new sender ID.
- Run
$termii->submitSenderId(string $sender_id, string $use_case, string $company)
and pass appropriate params
- 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
- 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
- You can send OTP
- Run
$termii->sendVoiceOTP(int $to, int $pin_attempts, int $pin_time_to_live, int $pin_length)
and pass appropriate params
- You can send OTP
- Run
$termii->sendVoiceCall(int $to, int $code)
and pass appropriate params
- You can verify or validate OTP
- Run
$termii->verifyOTP(string $pinId, string $pin)
pass appropriate params
- 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
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.