PHPackages                             infinitypaul/laravel-notification-channel-termii - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. infinitypaul/laravel-notification-channel-termii

ActiveLibrary

infinitypaul/laravel-notification-channel-termii
================================================

Termii SMS/Whatsapp Channel for Laravel

1.0.1(6mo ago)45.0k↑16.7%2MITPHPPHP &gt;=7.2CI passing

Since Jun 17Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/infinitypaul/laravel-notification-channel-termii)[ Packagist](https://packagist.org/packages/infinitypaul/laravel-notification-channel-termii)[ Docs](https://github.com/infinitypaul/laravel-notification-channel-termii)[ RSS](/packages/infinitypaul-laravel-notification-channel-termii/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Termii notifications channel for Laravel
========================================

[](#termii-notifications-channel-for-laravel)

This package brings you the joy of sending [Termii notifications](https://developer.termii.com) with Laravel, with the same effortlessness as a Sunday morning coffee. Take a sip and let's get started.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up your Termii account](#setting-up-your-termii-account)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install the package faster than you can say "composer" via composer:

```
composer require infinitypaul/laravel-notification-channel-termii
```

Service providers... You gotta love them. You either have to install them yourself, or if you're living on the edge with Laravel 5.5 or higher, let the package auto discovery do the work for you:

```
// config/app.php
'providers' => [
    ...
    Infinitypaul\Termii\TermiiServiceProvider::class,
],
```

### Setting up your Termii account

[](#setting-up-your-termii-account)

Time to tell Laravel your deepest secret (aka your Termii API Key). Also, add your favorite channel and an optional Sender ID. Whisper these to your config/services.php:

```
// config/services.php
'termii' => [
'api_key' => env('TERMII_API_KEY'),
'from' => env('TERMII_FROM'),
'channel' => 'dnd' //because I know you love 'do not disturb' mode 😉
]
```

Usage
-----

[](#usage)

The next step is as easy as pie. Simply use the channel in your via() method inside the notification:

```
use Infinitypaul\Termii\TermiiChannel;
use Infinitypaul\Termii\TermiiMessage;
use Illuminate\Notifications\Notification;

class WelcomeSMS extends Notification
{
    public function via($notifiable)
    {
        return [TermiiChannel::class]; // see? pie!
    }

    public function toTermii($notifiable)
    {
        return (new TermiiMessage())
            ->content("Thanks For Subscribing to infinitypaul.medium.com. We promise to only send interesting stuff, no cat videos... well, maybe just one.");
    }
}
```

Let's tell your Notification where it's heading(which phone are you sending to). Add the routeNotificationForTermii method to your Notifiable model (e.g., your User Model).

```
public function routeNotificationForTermii()
{
    return $this->phone; // where `phone` is a field in your users table;
}
```

or you can also just send it from `TermiiMessage` class in your `toTermii()` implementation.

```
public function toTermii($notifiable)
    {
        return (new TermiiMessage())
            ->content("Thanks For Subscribing to infinitypaul.medium.com. We promise to only send interesting stuff, no cat videos... well, maybe just one.")
            ->to("234100000001");
    }
```

### Available Message methods

[](#available-message-methods)

#### TermiiMessage

[](#termiimessage)

- `from('')`: Accepts a string -Represents a sender ID for sms which can be Alphanumeric or Device name for Whatsapp. Alphanumeric sender ID length should be between 3 and 11 characters (Example:CompanyName).
- `to('')`: Accepts a string - Represents a destination ID for sms in international format (Example: 2338013828492). It is optional, and can be set in the notifable model `routeNotificationForTermii()`.
- `content('')`: Accepts a string - Text of a message that would be sent to the destination phone number.
- `channel('')`: Accepts a string This is the route through which the message is sent. It is either `dnd`, `whatsapp`, or `generic`, by default it is dnd.
- `media('')`: Accepts an array, if your channel is `whatsapp` This is a media object, it is only available for the High Volume WhatsApp. When using the media parameter, ensure you are not using the sms parameter.
- `media_url('')`: Accepts a string, if your channel is `whatsapp` The url to the file resource,.
- `media_option('')`: Accepts a string, if your channel is `whatsapp` The caption that should be added to the image,.

Changelog
---------

[](#changelog)

Curious about our termii journey? Check out CHANGELOG for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test //(We promise it won't explode.)
```

Security
--------

[](#security)

Discovered any security issues? Please email us at . We promise to take it seriously, instead of using the issue tracker..

Credits
-------

[](#credits)

- [Paul Edward](https://github.com/infinitypaul)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance65

Regular maintenance activity

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~856 days

Total

2

Last Release

209d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15332137?v=4)[Paul Edward](/maintainers/infinitypaul)[@infinitypaul](https://github.com/infinitypaul)

---

Top Contributors

[![joshajiniran](https://avatars.githubusercontent.com/u/32210709?v=4)](https://github.com/joshajiniran "joshajiniran (7 commits)")[![infinitypaul](https://avatars.githubusercontent.com/u/15332137?v=4)](https://github.com/infinitypaul "infinitypaul (6 commits)")[![Onyimatics](https://avatars.githubusercontent.com/u/47529849?v=4)](https://github.com/Onyimatics "Onyimatics (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/infinitypaul-laravel-notification-channel-termii/health.svg)

```
[![Health](https://phpackages.com/badges/infinitypaul-laravel-notification-channel-termii/health.svg)](https://phpackages.com/packages/infinitypaul-laravel-notification-channel-termii)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
