PHPackages                             slayerz/triosms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. slayerz/triosms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slayerz/triosms
===============

Send SMS in Laravel 4 using API from trio-mobile.com

v1.0.3(10y ago)179MITPHPPHP &gt;=5.4.0

Since Nov 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/slayerz/triosms)[ Packagist](https://packagist.org/packages/slayerz/triosms)[ RSS](/packages/slayerz-triosms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

\#Trio SMS

[![Latest Stable Version](https://camo.githubusercontent.com/21b31a90fc87f974ae455fada5c7269340ed31fca1294111c8c9cc9754ee25b2/68747470733a2f2f706f7365722e707567782e6f72672f736c617965727a2f7472696f736d732f762f737461626c652e737667)](https://packagist.org/packages/slayerz/triosms)[![Total Downloads](https://camo.githubusercontent.com/321ac4f94696b08d295e07c4a64c4ef6845de0ecad8977a4f3de8c4e205dc020/68747470733a2f2f706f7365722e707567782e6f72672f736c617965727a2f7472696f736d732f646f776e6c6f6164732e737667)](https://packagist.org/packages/slayerz/triosms)[![Latest Unstable Version](https://camo.githubusercontent.com/2834285867da939f27e28490321954c52b5eb91b989e64dbcc262c7ce6ebe543/68747470733a2f2f706f7365722e707567782e6f72672f736c617965727a2f7472696f736d732f762f756e737461626c652e737667)](https://packagist.org/packages/slayerz/triosms)[![License](https://camo.githubusercontent.com/1ff875b14d4667e63906e8642c1047ec499935f21d63a19c2f494aa044677815/68747470733a2f2f706f7365722e707567782e6f72672f736c617965727a2f7472696f736d732f6c6963656e73652e737667)](https://packagist.org/packages/slayerz/triosms)

Introduction
------------

[](#introduction)

Send SMS in Laravel 4 using API from [trio-mobile.com](http://www.trio-mobile.com)

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

[](#installation)

Require this package with composer:

```
composer require slayerz/triosms

```

After updating composer, add the ServiceProvider to the providers array in `app/config/app.php`

```
'Slayerz\Triosms\TriosmsServiceProvider',

```

You can have your own config for this package by publishing it

```
php artisan config:publish slayerz/triosms

```

Once published, you can modify the config in `app/config/packages/slayerz/triosms/config.php`

```
'url'	=> 'API-URL-ADDRESS',
'token' => 'API-TOKEN',
'mode'	=> 'ACCOUNT-WITH-CREDIT'

```

You have to configure the default sender mode for your account.
The default sender mode is set to `shortcode`

Available mode for Trio SMS:

```
'shortcode' (send SMS using 5 digits number to international)
'longcode'  (send SMS using 10 digits number within Malaysia)

```

### Usage

[](#usage)

##### Function send( )

[](#function-send-)

```
SMS::send($recipient, $message, $mode = '', $format = '');

```

- **$recipient**: recipient mobile number
- **$message**: message to be sent (160 chars for ASCII, 70 chars for UNICODE)
- **$mode**: account to send the SMS from (default: `shortcode`)
- **$format**: content type either 1: ASCII or 4: UNICODE (defaut: `1`)

##### Function balance( )

[](#function-balance-)

```
SMS::balance($mode = '');

```

- **$mode**: account you wish to check balance from (default: `shortcode`)

### Example

[](#example)

##### Sending SMS

[](#sending-sms)

```
public function sendSMS()
{
	return SMS::send('60123456789', '160 chars for ASCII & 70 chars for UNICODE');
}

```

Successful message should output positive string value

```
CP22051400000001

```

##### Checking Credit Balance

[](#checking-credit-balance)

```
public function balanceCheck()
{
	return SMS::balance();
}

```

Successful check should output positive integer value

```
1987

```

### License

[](#license)

Trio SMS is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~114 days

Total

3

Last Release

3985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29936ffd5f43c687f58f60149c3589be5db92317a8602739fae1184e32d066bf?d=identicon)[slayerz](/maintainers/slayerz)

---

Top Contributors

[![slayerz](https://avatars.githubusercontent.com/u/9287066?v=4)](https://github.com/slayerz "slayerz (3 commits)")

---

Tags

laravelsmstrio-mobile

### Embed Badge

![Health badge](/badges/slayerz-triosms/health.svg)

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

###  Alternatives

[franzose/laravel-smpp

SMS sending via SMPP protocol for Laravel framework.

3941.6k1](/packages/franzose-laravel-smpp)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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