PHPackages                             mentalist/sms - 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. mentalist/sms

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

mentalist/sms
=============

A simple abstract SMS wrapper with support for templates

00PHP

Since Feb 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ment4list/SMS)[ Packagist](https://packagist.org/packages/mentalist/sms)[ RSS](/packages/mentalist-sms/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMS
===

[](#sms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a234d07afe25a9dad5d68e1fca59ffb00e3910cecc976a8790e986511432235f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656e74616c6973742f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mentalist/sms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f06240f4befe88658239f3c2d09a35b48b3b5f6f29c94a98eafbe9627613d83c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d656e74616c6973742f736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mentalist/sms)[![Coverage Status](https://camo.githubusercontent.com/6097160f76c912425d196eefc19816be74c49adf666a7d08ace69b8a263e5453/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6d656e74616c6973742f736d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mentalist/sms/code-structure)[![Quality Score](https://camo.githubusercontent.com/057d3ab437dd7510fc66677c8ffc713a2eba53b77593bf0870cfcee1e73a606f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d656e74616c6973742f736d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mentalist/sms)[![Total Downloads](https://camo.githubusercontent.com/1a45f2b5fc482a7ebe4744abdab93e885775ae783514149c090b15fd5db108a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656e74616c6973742f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mentalist/sms)

A simple abstract SMS wrapper with support for templates.

Structure
---------

[](#structure)

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require mentalist/sms
```

Usage
-----

[](#usage)

```
// Create a recipient
$recipient = '555-555-5555';

// Use default Provider
$SMS = new \Mentalist\SMS\SMS();

// Add a recipient
$SMS->addRecipient($recipient);
// Set the message
$SMS->setMessage('Hello, League!');
// Send it!
$SMS->send();

// Use Nexmo Provider
$provider = new \Mentalist\SMS\Provider\NexmoProvider('NEXMO_API_KEY', 'NEXMO_API_SECRET');
$SMS = new \Mentalist\SMS\SMS($provider);

// Add multiple recipients
$SMS->addRecipients([$recipient, '555-000-5555']);
// Set the message
$SMS->setMessage('Sent using Nexmo!');
// Send it!
$SMS->send();

// Clear recipients
$recipients = $SMS->clearRecipients();

// Get credits
$credits = $SMS->getCredits();
// or
$credits = $provider->getCredits();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jurgens Banninga](https://github.com/ment4list)
- [All Contributors](../../contributors)

Special thanks to [The League of Extraordinary Packages](https://thephpleague.com/) for the inspiration and excellent starting point.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4fe46dccca0aeda16b041c2b0f3f8d59defe794cf8e42579cbee754b88bb39e?d=identicon)[dev21e1](/maintainers/dev21e1)

### Embed Badge

![Health badge](/badges/mentalist-sms/health.svg)

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

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.5k48.6M278](/packages/hashids-hashids)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k27.6M92](/packages/simplesoftwareio-simple-qrcode)[meanbee/footerjs

Meanbee Footerjs module

14112.1k](/packages/meanbee-footerjs)[nonsapiens/realaddressfactory

Creates real-world street addresses from Google Maps, to use in database seeding, unit tests, or anything else. Supports Laravel 11+, and Faker

4910.2k7](/packages/nonsapiens-realaddressfactory)[phpsafari/health-checks

Make health checks in your laravel application

3713.2k](/packages/phpsafari-health-checks)[mjanssen/laravel-5-breadcrumbs

A simple and powerfull way to create breadcrumbs in Laravel 5+

1545.7k](/packages/mjanssen-laravel-5-breadcrumbs)

PHPackages © 2026

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