PHPackages                             laravel-notification-channels/smspoh - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. laravel-notification-channels/smspoh

ActiveLibrary[Queues &amp; Workers](/categories/queues)

laravel-notification-channels/smspoh
====================================

Smspoh Notifications channel

v2.0.0(3mo ago)83.9k4MITPHPPHP ^8.2CI passing

Since Dec 26Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/laravel-notification-channels/smspoh)[ Packagist](https://packagist.org/packages/laravel-notification-channels/smspoh)[ Docs](https://github.com/laravel-notification-channels/smspoh)[ RSS](/packages/laravel-notification-channels-smspoh/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (24)Versions (16)Used By (0)

Smspoh Notifications Channel for Laravel
========================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/ded80fb4f3e39ed1dd09cbfec8dd87079c4991a2b958d7ebb0d828caf07c5241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73706f682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/smspoh)[![Total Downloads](https://camo.githubusercontent.com/d43fbb7504a9eb14ad57d2dc8fbaca783e8361a54a9fb8abc6376759018b723b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73706f682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/smspoh)[![GitHub Tests Action Status](https://camo.githubusercontent.com/125d3715f93e385fcd1a318349b8c8729595b4ee443359336d370fd7e529da0f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73706f682f72756e2d74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/laravel-notification-channels/smspoh/actions/workflows/run-tests.yml)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package makes it easy to send notifications using [SmsPoh](https://smspoh.com/).

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the smspoh](#setting-up-the-smspoh-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
    - [ On-Demand Notifications](#on-demand-notifications)
- [Upgrade](#upgrade)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require laravel-notification-channels/smspoh
```

### Setting up the Smspoh service

[](#setting-up-the-smspoh-service)

Add your Smspoh token, default sender name (or phone number) to your config/services.php:

```
// config/services.php
...
'smspoh' => [
    'key' => env('SMSPOH_KEY', 'YOUR SMSPOH KEY HERE'),
    'secret' => env('SMSPOH_SECRET', 'YOUR SMSPOH SECRET HERE'),
    'from' => env('SMSPOH_FROM', 'YOUR SMSPOH SENDER HERE')
],
...
```

Usage
-----

[](#usage)

You can use the channel in your via() method inside the notification:

```
use Illuminate\Notifications\Notification;
use NotificationChannels\Smspoh\SmspohMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return ["smspoh"];
    }

    public function toSmspoh($notifiable)
    {
        return (new SmspohMessage)
            ->content("Your account was approved!")
            ->scheduledAt("2026-03-24 12:00:00")
            ->unicode()
            ->deliveryReceiptUrl("https://yourwebsite.com/webhook/smspoh-delivery-receipt");
    }
}
```

In your notifiable model, make sure to include a routeNotificationForSmspoh() method, which returns a phone number or an array of phone numbers.

```
public function routeNotificationForSmspoh()
{
    return $this->phone;
}
```

### On-Demand Notifications

[](#on-demand-notifications)

Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:

```
Notification::route('smspoh', '5555555555')
            ->notify(new InvoicePaid($invoice));
```

### Encrypted Messages

[](#encrypted-messages)

We strongly recommend using the encrypted message feature for corporates, banks, e-wallets, OTPs, and all other financial transactions. To encrypt your message, you can use the `encrypt()` and `encryptKey()` methods:

```
return (new SmspohMessage)
    ->content("Your Bank OTP Code is 12345")
    ->encrypt()
    ->encryptKey("YourEncryptKey");
```

### Available Message methods

[](#available-message-methods)

`from()`: Sets the sender's name. *Make sure to register the sender name at you SmsPoh dashboard.*

`content()`: Set a content of the notification message. This parameter should be no longer than 918 char(6 message parts),

`test()`: Send a test message to specific mobile number or not. This parameter should be boolean and default value is `true`.

`scheduledAt()`: Set the scheduled delivery time. The datetime string should be in `Y-m-d H:i:s` format.

`encrypt()`: Encrypt the message content. This parameter should be boolean and default value is `true`.

`encryptKey()`: Set the encryption key for the message content. If you do not specify the `encryptKey`, a random key will be generated by SMSPoh and included in the response body.

`unicode()`: Send as a unicode message. This parameter should be boolean and default value is `true`.

`deliveryReceiptUrl()`: Set a custom callback URL to receive delivery receipts for this message.

Upgrade
-------

[](#upgrade)

Please see [UPGRADE](UPGRADE.md) for more information

Testing
-------

[](#testing)

```
$ composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/laravel-notification-channels/smspoh/blob/master/.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tint Naing Win](https://github.com/tintnaingwin)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~285 days

Recently: every ~376 days

Total

9

Last Release

103d ago

Major Versions

v1.6.0 → v2.0.02026-03-24

PHP version history (5 changes)v1.0.0PHP &gt;=7.2

v1.2.0PHP ^7.2 || ^8.0

v1.4.0PHP ^8.1|^8.2

v1.5.0PHP ^8.1

v1.6.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![tintnaingwin](https://avatars.githubusercontent.com/u/13062143?v=4)](https://github.com/tintnaingwin "tintnaingwin (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (2 commits)")

---

Tags

messagelaravelatomnotificationssmsMyanmarSmsPohMPTOoredooMyTel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/laravel-notification-channels-smspoh/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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