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. [API Development](/categories/api)
4. /
5. aungmyokyaw/tmh

ActiveLibrary[API Development](/categories/api)

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 today

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 52% 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

1187d 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://avatars.githubusercontent.com/u/32431323?v=4)[Aung Myo Kyaw](/maintainers/aungmyokyaw97)[@aungmyokyaw97](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M973](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M88](/packages/openai-php-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

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