Download the PHP package aungmyokyaw/tmh without Composer

On this page you can find all versions of the php package aungmyokyaw/tmh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tmh

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

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

Configuration

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

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:

SMS

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

One-Time Password (OTP)

You can then call OTP methods. For example:

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:

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

OTP Arguments

The otp() method accepts two optional arguments:

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.

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


All versions of tmh with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0|^8.1|^8.2
guzzlehttp/guzzle Version ^6.3|^7.5
laravel/framework Version ^10.0|^9.0|^8.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aungmyokyaw/tmh contains the following files

Loading the files please wait ....