承接 aungmyokyaw/tmh 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aungmyokyaw/tmh

Composer 安装命令:

composer require aungmyokyaw/tmh

包简介

Laravel SMS package for Tah Moe Hnye`

README 文档

README

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

composer require aungmyokyaw/tmh

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

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

use TMH;

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)

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

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

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.

aungmyokyaw/tmh 适用场景与选型建议

aungmyokyaw/tmh 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 56 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 03 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「package」 「sms」 「laravel」 「otp」 「tmh」 「Tah Moe Hnye」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 aungmyokyaw/tmh 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 aungmyokyaw/tmh 我们能提供哪些服务?
定制开发 / 二次开发

基于 aungmyokyaw/tmh 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 56
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-22