PHPackages                             aungmyokyaw/tmh - 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. aungmyokyaw/tmh

ActiveLibrary

aungmyokyaw/tmh
===============

Laravel SMS package for Tah Moe Hnye`

v1.0.4(3y ago)156MITPHPPHP ^7.2|^8.0|^8.1|^8.2

Since Mar 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aungmyokyaw97/TMH)[ Packagist](https://packagist.org/packages/aungmyokyaw/tmh)[ RSS](/packages/aungmyokyaw-tmh/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (12)Used By (0)

Laravel package for Tah Moe Hnye` SMS and One-Time Password (OTP) Integration
-----------------------------------------------------------------------------

[](#laravel-package-for-tah-moe-hnye-sms-and-one-time-password-otp-integration)

About
-----

[](#about)

This package is designed specifically for Tah Moe Hnye` SMS, providing a simple and efficient way to send SMS messages using Laravel. With features such as easy integration, customizable OTP, and detailed message.

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

[](#installation)

```
composer require aungmyokyaw/tmh

```

Configuration
-------------

[](#configuration)

You will need to publish the configuration file to your application. You can do this using the following command:

```
php artisan vendor:publish --tag="tmh-config"

```

After publishing the package's configuration file, you will find the file at `config/tmh.php`. You will need to fill out the necessary data in this file to use the package.

Usage samples
-------------

[](#usage-samples)

To use the package in your application, you will need to import the TMH class:

```
use TMH;

```

#### SMS

[](#sms)

You can then call `SMS` methods on the TMH class to work with TMH data. For example:

```
$response = TMH::sms('This is test SMS.')->send('959xxxxxxxxx');

```

#### One-Time Password (OTP)

[](#one-time-password-otp)

You can then call `OTP` methods. For example:

```
$response = TMH::otp()->send('959xxxxxxxxx');

```

This will send an OTP to the phone number 959xxxxxxxxx. Make sure to replace this phone number with the actual phone number you want to send the OTP to. The default OTP `type is numberic` and the `length is 6`.

If you want a custom OTP, you can change the following code:

```
$response = TMH::otp('alphabet',8)->send('959xxxxxxxxx');
dd($response);

```

It means that the OTP will consist of random alphabetic characters and will be 8 characters long.

#### OTP Arguments

[](#otp-arguments)

```
TMH::otp($type, $length)->send('959xxxxxxxxx');

```

The `otp()` method accepts two optional arguments:

- `$type`: the type of OTP to send, such as `numeric`, `alphabet` or `alphanumeric`. If not specified, the default is `numeric`.
- `$length`: the length of the OTP to send, such as 4 or 6. If not specified, `the default is 6`.

#### Custom OTP SMS Message

[](#custom-otp-sms-message)

The default OTP message is `Your OTP is :otp .`If you want to change custom message,you need to publish `translation` file.

```
php artisan vendor:publish --tag="tmh-translation"

```

After publishing the package's translation file, you can find the file at `resources/lang/vendor/tmh`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

10

Last Release

1136d ago

Major Versions

v0.0.7 → v1.0.02023-03-23

PHP version history (4 changes)v0.0.3PHP ^7.2.5 || ^8.1

v0.0.4PHP ^7.2.5|^8.1

v0.0.6PHP ^7.2|^8.2

v0.0.7PHP ^7.2|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cd85400497e59f1cbd6425c3f64ff4c6db9abca024f71f09424656270f1b42e?d=identicon)[aungmyokyaw97](/maintainers/aungmyokyaw97)

---

Top Contributors

[![aungmyokyaw97](https://avatars.githubusercontent.com/u/32431323?v=4)](https://github.com/aungmyokyaw97 "aungmyokyaw97 (12 commits)")

---

Tags

laravelpackageotpsmstmhTah Moe Hnye

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aungmyokyaw-tmh/health.svg)

```
[![Health](https://phpackages.com/badges/aungmyokyaw-tmh/health.svg)](https://phpackages.com/packages/aungmyokyaw-tmh)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[salehhashemi/laravel-otp-manager

Laravel OTP manager

18713.2k](/packages/salehhashemi-laravel-otp-manager)[ferdous/laravel-otp-validate

Laravel package for OTP validation with built-in features like retry and resend mechanism. Built in max retry and max resend blocking. OTP/Security Code can be send over SMS or Email of your choice with user-defined template.

7124.4k](/packages/ferdous-laravel-otp-validate)

PHPackages © 2026

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