Download the PHP package mail-mantra/sms without Composer
On this page you can find all versions of the php package mail-mantra/sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mail-mantra/sms
More information about mail-mantra/sms
Files in mail-mantra/sms
Package sms
Short Description Send SMS
License MIT
Homepage https://github.com/mail-mantra/sms
Informations about the package sms
MM SMS
A simple library to send SMS using MM Sms Service
Official PHP library for Mail Mantra SMS.
Read up here for getting started and understanding the sms flow with MM Sms: https://sms1.mailmantra.com/v2
Prerequisites
- A minimum of PHP 7.3 upto 8.3
Installation
-
If your project using composer, run the below command
- If you are not using composer, download the latest release from the releases section.
Note:
This PHP library follows the following practices:
- Namespaced under
MM\Sms - API throws exceptions instead of returning errors
- Options are passed as an array instead of multiple arguments wherever possible
- All requests and responses are communicated over JSON
Documentation
Documentation of MM SMS's API and their usage is available at https://sms1.mailmantra.com
Basic Usage
Instantiate the MM Sms instance with auth_key. You can obtain the keys from the dashboard app (https://sms1.mailmantra.com/v2/sender_id/list_all)
The resources can be accessed via the $mmSMS object. All the methods invocations follows the following pattern
Common Examples
View Balance:
To view your balance
Output:
Send sms:
Send a sms to one or more mobile number(comma seperated mobile numbers)
Output:
Send Bulk sms:
Send a sms to one or more mobile number(comma seperated mobile numbers)
Output:
Changelog
Version 1.0.1 provided by milan-sahana - Testing
- Cleaned Up Code
- Fixed Bugs
- A minimum of PHP 7.3
- Added Option to prevent json error
Version 1.0.0 - Stable Release
- View Balance
- Added Send SMS in Bulk
- Fixed issue Send SMS
- Update extras array
- Updating version pattern.
License
The MM SMS PHP SDK is released under the MIT License. See LICENSE file for more details.
All versions of sms with dependencies
ext-curl Version *
ext-json Version *