Download the PHP package okolaa/termiiphp without Composer
On this page you can find all versions of the php package okolaa/termiiphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download okolaa/termiiphp
More information about okolaa/termiiphp
Files in okolaa/termiiphp
Informations about the package termiiphp
Termii PHP SDK
About | Requirements | Usage | Contribution | License | Author
:dart: About
Termii PHP SDK is a robust library designed to facilitate seamless integration with the Termii API. It enables developers to efficiently send SMS messages, manage sender IDs, handle campaigns, and verify tokens within PHP applications.
:white_check_mark: Requirements
- To use Termii's APIs, you need to first create an account for free at termii.com.
-
BASE URL: Your Termii account has its own base URL, which you should use in all API requests. Your base URL can be found on your dashboard.
- Ensure that PHP 8.1 PHP 8.1+ or higher is installed on your system.
:hammer: Installation
:checkered_flag: Usage
TLDR;
- Your API Token can be found in your Termii account settings https://app.termii.com/account/api
Switch API
Termii’s Messaging allows you to send messages to any country in the world across SMS and WhatsApp channel through a REST API. Every request made is identified by a unique ID that help our users track the status of their message either by receiving Delivery Reports (DLRs) over their set webhook endpoints or polling the status of the message using a specific endpoint.
Messaging
Send Message
Send Bulk Message
Send Device Template
Sender ID
Campaigns
Phonebook
Contact
Token API
The TokenApi
in the Termii PHP SDK enables businesses to generate, send, and verify One-Time Passwords (
OTPs).
It's a powerful feature tailored for two-factor authentication and secure user verification processes.
Send Token
Voice Token
The voice token API enables you to generate and trigger one-time passwords (OTP) through the voice channel to a phone number.
Voice Call Token
The voice call API enables you to send messages from your application through our voice channel to a phone number.
Verify Token
Verify token API, checks tokens sent to customers and returns a response confirming the status of the token.
Email Token
The email token API enables you to send one-time-passwords from your application through our email channel to an email address.
In-App Token
This API returns OTP codes in JSON format which can be used within any web or mobile app.
Advanced Configuration
-
Customizing Requests
- The Response Class
Troubleshooting
The simplest way to debug a request and response is to use the debug() method on your connector before sending a request. This will output an easy-to-understand array of the request and the response.
You may also use debugRequest and debugResponse independently if you would like to debug just the request or response respectively.
Common Issues
-
Invalid API Key: Ensure you’ve set a valid API key. You can validate this by logging into the Termii Dashboard.
-
SSL Certificate Issues: If you encounter SSL errors in local environments, ensure your system’s CA certificates are up to date. Alternatively, you can disable the SSL certificate verification as shown below:
- Timeouts: Increase the timeout values if the Termii API is slow to respond:
:hammer: Contribution
:memo: License
This project is under license from MIT. For more details, see the LICENSE file.
Made with :heart: by Douglas Okolaa
Back to top