PHPackages                             misaf/laravel-sms-gateway-twilio - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. misaf/laravel-sms-gateway-twilio

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

misaf/laravel-sms-gateway-twilio
================================

Twilio SMS gateway driver for Laravel.

v3.0.0(1mo ago)11↓83.3%MITPHPPHP ^8.3CI passing

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/misaf/laravel-sms-gateway-twilio)[ Packagist](https://packagist.org/packages/misaf/laravel-sms-gateway-twilio)[ Docs](https://github.com/misaf/laravel-sms-gateway-twilio)[ RSS](/packages/misaf-laravel-sms-gateway-twilio/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (9)Versions (5)Used By (0)

Laravel SMS Gateway Twilio Driver
=================================

[](#laravel-sms-gateway-twilio-driver)

Twilio SMS gateway driver for [`misaf/laravel-sms-gateway`](https://github.com/misaf/laravel-sms-gateway).

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

[](#installation)

```
composer require misaf/laravel-sms-gateway-twilio
```

Laravel package discovery registers the driver service provider automatically.

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

[](#configuration)

```
SMS_GATEWAY_DRIVER=twilio
SMS_GATEWAY_TWILIO_ACCOUNT_SID=your-account-sid
SMS_GATEWAY_TWILIO_AUTH_TOKEN=your-auth-token
```

```
// config/services.php
'twilio' => [
    'account_sid' => env('SMS_GATEWAY_TWILIO_ACCOUNT_SID'),
    'auth_token'  => env('SMS_GATEWAY_TWILIO_AUTH_TOKEN'),
    'base_url' => env('SMS_GATEWAY_TWILIO_BASE_URL'),
],
```

By default, the account SID is included in the base URL path. If you override `base_url`, include the account-specific path segment expected by Twilio.

Driver Behavior
---------------

[](#driver-behavior)

OptionValueDriver name`twilio`Default base URL`https://api.twilio.com/2010-04-01/Accounts/{account_sid}/``send()` endpoint`POST Messages.json`AuthenticationHTTP Basic auth from `services.twilio.account_sid` and `services.twilio.auth_token`PayloadForm data sent directly to TwilioUsage
-----

[](#usage)

```
use Misaf\LaravelSmsGateway\Facade\SmsGateway;

$response = SmsGateway::driver('twilio')->send([
    'To'   => '+15005550006',
    'From' => '+15005550001',
    'Body' => 'Here is a test message.',
]);
```

The payload is passed directly to Twilio, so use the fields expected by the Twilio API.

Use `request()` when you need direct access to Laravel's HTTP client:

```
$request = SmsGateway::driver('twilio')->request();
```

Testing
-------

[](#testing)

```
composer test
composer analyse
```

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance91

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~0 days

Total

2

Last Release

46d ago

Major Versions

v1.0.0 → v3.0.02026-07-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/41fd7351d25e29dafa18068d0418eecf6bb47a7473aabe6bc674b4ca35e71805?d=identicon)[misaf](/maintainers/misaf)

---

Top Contributors

[![misaf](https://avatars.githubusercontent.com/u/8195685?v=4)](https://github.com/misaf "misaf (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravellaravel-packagesmstwiliosms apisms-gatewaysms providersms drivertwilio-sms

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/misaf-laravel-sms-gateway-twilio/health.svg)

```
[![Health](https://phpackages.com/badges/misaf-laravel-sms-gateway-twilio/health.svg)](https://phpackages.com/packages/misaf-laravel-sms-gateway-twilio)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

319280.7k6](/packages/tzsk-sms)[prgayman/laravel-sms

Laravel package for sending SMS

125.1k](/packages/prgayman-laravel-sms)

PHPackages © 2026

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