Download the PHP package olusegun171/laravel-termii without Composer
On this page you can find all versions of the php package olusegun171/laravel-termii. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-termii
Termii API for Laravel
This is a laravel package for Termii API
Requirements
- Php >= 8.0
- Laravel 9.0 or higher
Installation
Once the Laravel package is installed, Open your .env file and add the following variables. Get your API key from https://accounts.termii.com/
Usage
To use any of the Termii's API, First, add the LaravelTermii\Termii class
1. Messaging API
To use the Termii’s Messaging API, first create an instance with
-
Send message
Send message with the default senderID 'N-Alert'.
-
Send bulk message
Send bulk message with the default senderID 'N-Alert'.
-
Auto-generated messaging numbers
send messages to customers using Termii's auto-generated messaging numbers that adapt to customers location. For more information visit https://developer.termii.com/number
-
Whatsapp message
Send whatsapp message with default device name 'N-Alert'
-
Send Template
Set a template for the one-time-passwords (pins) sent to customers via whatsapp or sms. For more information visit https://developer.termii.com/templates
-
Phonebook
Create, view & manage phonebooks using these methods. Each phonebook can be identified by a unique ID, which makes it easier to edit or delete a phonebook.
-
Contacts
Manage contacts in your phonebook.
-
Campaigns
View, manage and send a campaign to a phonebook
-
Request Sender ID
Use this method to request a new sender ID from your Termii account
-
Fetch Sender ID
Use this method to fetch all sender IDs in your Termii account
2. Token API
To use the Termii’s Token API, first create an instance with the following
-
Send Token
Trigger one-time-passwords (OTP) across any available messaging channel on Termii. One-time-passwords created are generated randomly and there's an option to set an expiry time.
-
Send Voice Token
Generate and trigger one-time passwords (OTP) through the voice channel to a phone number. OTPs are generated and sent to the phone number and can be verified calling wverifyToken method
-
Send Voice Call
Send messages from your application through our voice channel to a phone number. Only one-time-passwords (OTP) are allowed for now and these OTPs can not be verified
-
Send Email Token
Send one-time-passwords from your application through our email channel to an email address. Only one-time-passwords (OTP) are allowed for now and these OTPs can not be verified
-
Verify Token
Checks tokens sent to customers and returns a response confirming the status of the token. A token can either be confirmed as verified or expired based on the timer set for the token.
-
In-App Token
Returns OTP codes in JSON format which can be used within any web or mobile app. Tokens are numeric or alpha-numeric codes generated to authenticate login requests and verify customer transactions.
3. Insight API
To use the Termii’s Insight API, first create an instance with the following
-
Account Balance
Returns your total balance and balance information from your wallet, such as currency.
-
Search
To verify phone numbers and automatically detect their status as well as current network. It also tells if the number has activated the do-not-disturb settings.
-
Status
Check if a number is fake or has ported to a new network.
-
History
Returns reports for messages sent across the sms, voice & whatsapp channels. Reports can either display all messages on termii or a single message. This returns your total balance and balance information from your wallet, such as currency.
Other Response methods
License
This project is under license from MIT. For more details, see the LICENSE file.
Back to top