PHPackages                             escolalms/templates-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. [Templating &amp; Views](/categories/templating)
4. /
5. escolalms/templates-sms

ActivePackage[Templating &amp; Views](/categories/templating)

escolalms/templates-sms
=======================

Escola Headless LMS Templates for sms

0.1.12(1y ago)19.9k↑76.3%1MITPHPPHP &gt;=7.4CI failing

Since Feb 14Pushed 1y ago2 watchersCompare

[ Source](https://github.com/EscolaLMS/Templates-SMS)[ Packagist](https://packagist.org/packages/escolalms/templates-sms)[ RSS](/packages/escolalms-templates-sms/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (13)Versions (24)Used By (1)

Templates-SMS
=============

[](#templates-sms)

[![codecov](https://camo.githubusercontent.com/a82eddfdcdbeef279736cebf0bad6f39c19b48a58f32493566373fa36feaa564/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f54656d706c617465732d534d532f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4f393146484e4b493652)](https://codecov.io/gh/EscolaLMS/Templates-SMS)[![Tests PHPUnit in environments](https://github.com/EscolaLMS/Templates-SMS/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Templates-SMS/actions/workflows/test.yml)[![downloads](https://camo.githubusercontent.com/002ae676872ea315381e871c19b916c733f92fe804da0c2b194479714bfc66a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f6c616c6d732f74656d706c617465732d736d73)](https://packagist.org/packages/escolalms/templates-sms)[![downloads](https://camo.githubusercontent.com/8acf8e98ecc4dc5c11c546dbb3d5438ad81b6d6ab849f0b796ba62984c2bbca0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f6c616c6d732f74656d706c617465732d736d73)](https://packagist.org/packages/escolalms/templates-sms)[![downloads](https://camo.githubusercontent.com/519ae1e61ef1d8362a795cfc6bbead1867a9f4d2cbff35e987090424cacde303/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573636f6c616c6d732f74656d706c617465732d736d73)](https://packagist.org/packages/escolalms/templates-sms)

What does it do
---------------

[](#what-does-it-do)

Package for sms notifications with editable templates (for important user-related events). This package supports sending sms via twilio.

Installing
----------

[](#installing)

- `composer require escolalms/templates-sms`
- `php artisan db:seed --class="EscolaLms\Templates-SMS\Database\Seeders\TemplateSmsSeeder"`

Configuration
-------------

[](#configuration)

You can configure the connection to Twilio through keys in the `.env` file:

- `TWILIO_SID` - twilio SID unique key
- `TWILIO_TOKEN` - twilio auth token
- `TWILIO_FROM` - twilio phone number
- `TWILIO_SSL_VERIFY` - twilio ssl verify

You can also change the default driver in `SMS_DRIVER`

Example
-------

[](#example)

### Sending SMS

[](#sending-sms)

Sending an SMS using the `Sms` facade

```
Sms::driver('twilio')->send('123456789', 'SMS message');
```

or

```
Sms::send('123456789', 'SMS message');
```

### Custom driver

[](#custom-driver)

You can define your own driver for sending sms. The driver must implement the interface `\EscolaLms\TemplatesSms\Drivers\Contracts\SmsDriver`.

```
interface SmsDriver
{
    public function send(string $to, string $content, array $mediaUrls = [], array $params = []): bool;
}
```

Example custom driver:

```
class CustomDriver implements \EscolaLms\TemplatesSms\Drivers\Contracts\SmsDriver
{
    public function send(string $to, string $content, array $mediaUrls = [], $params = []): bool
    {
        // Implement send() method.
    }
}
```

Register a new driver, we would do the following:

```
Sms::extend('custom', function($app) {
    return new CustomDriver($app);
});
```

Tests
-----

[](#tests)

Run `./vendor/bin/phpunit` to run tests. See [tests](tests) folder as it's quite good staring point as documentation appendix.

[![codecov](https://camo.githubusercontent.com/a82eddfdcdbeef279736cebf0bad6f39c19b48a58f32493566373fa36feaa564/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f54656d706c617465732d534d532f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4f393146484e4b493652)](https://codecov.io/gh/EscolaLMS/Templates-SMS)[![Tests PHPUnit in environments](https://github.com/EscolaLMS/Templates-SMS/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/Templates-SMS/actions/workflows/test.yml)

This package has a facade for testing. The Sms facade's fake method allows you to easily a fake sms driver.

```
public function testSms() {
    Sms::fake();
    ...
    $service->sendSms($phone1);
    ...
    Sms::assertSent($phone1);
    Sms::assertNotSent($phone2);
}
```

```
public function testSms() {
    Sms::fake();
    ...
    Sms::assertSent($phone1, fn($sms) => $sms->content === 'Sms message');
}
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~68 days

Total

22

Last Release

599d ago

PHP version history (2 changes)0.0.1PHP ^7.4|^8.0

0.1.9PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![dyfero](https://avatars.githubusercontent.com/u/59400506?v=4)](https://github.com/dyfero "dyfero (14 commits)")[![HerbertIV](https://avatars.githubusercontent.com/u/62691459?v=4)](https://github.com/HerbertIV "HerbertIV (5 commits)")[![mako321](https://avatars.githubusercontent.com/u/59456825?v=4)](https://github.com/mako321 "mako321 (4 commits)")[![qunabu](https://avatars.githubusercontent.com/u/214608?v=4)](https://github.com/qunabu "qunabu (4 commits)")[![daVitekPL](https://avatars.githubusercontent.com/u/58150098?v=4)](https://github.com/daVitekPL "daVitekPL (3 commits)")

---

Tags

laravelsms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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