PHPackages                             twilioman/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. twilioman/twilio

ActiveLibrary

twilioman/twilio
================

Twilio API for Laravel

0.1(6y ago)0165MITPHPPHP &gt;=5.5.0

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/chetanhub/laravel-twilio)[ Packagist](https://packagist.org/packages/twilioman/twilio)[ RSS](/packages/twilioman-twilio/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

laravel-twilio
==============

[](#laravel-twilio)

Laravel Twillio API Integration

[![Latest Unstable Version](https://camo.githubusercontent.com/d5a4fcae3c4ba4b0406313ee9c92aa4273460a006b59e4dca51d7123baebbac5/68747470733a2f2f706f7365722e707567782e6f72672f7477696c696f6d616e2f7477696c696f2f762f756e737461626c652e737667)](https://packagist.org/packages/twilioman/twilio)[![License](https://camo.githubusercontent.com/655f735f13aefc9e16a4618ecf7bf598290cc4912c97e9a929b612e7bd673c13/68747470733a2f2f706f7365722e707567782e6f72672f7477696c696f6d616e2f7477696c696f2f6c6963656e73652e737667)](https://packagist.org/packages/twilioman/twilio)

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

[](#installation)

Begin by installing this package through Composer. Run this command from the Terminal:

```
composer require twilioman/twilio
```

If you're using Laravel 5.5+, this is all there is to do.

Should you still be on older versions of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.

Integration for older versions of Laravel (5.5 -)
-------------------------------------------------

[](#integration-for-older-versions-of-laravel-55--)

To wire this up in your Laravel project, you need to add the service provider. Open `app.php`, and add a new item to the providers array.

```
'TwilioMan\LaravelTwilio\Provider\ServiceProvider',
```

There's a Facade class available for you, if you like. In your `app.php` config file add the following line to the `aliases` array if you want to use a short class name:

```
'Twilio' => 'TwilioMan\LaravelTwilio\Facade\Facade',
```

#### Facade

[](#facade)

First, include the `Facade` class at the top of your file:

```
use TwilioMan\LaravelTwilio\Twilio;
```

To send a message using the default entry from your `twilio` :

```
Twilio::message($user->phone, $message);
```

### Usage

[](#usage)

Creating a Twilio object.

```
$twilio = new TwilioMan\LaravelTwilio\Twilio($accountId, $token, $fromNumber);
```

Sending a text message:

```
$twilio->message('+18085551212', 'Pink Elephants and Happy Rainbows');
```

Access the configured `Twilio\Rest\Client` object:

```
$sdk = $twilio->getTwilio();
```

You can also access this via the Facade as well:

```
$sdk = Twilio::getTwilio();
```

##### Pass as many optional parameters as you want

[](#pass-as-many-optional-parameters-as-you-want)

If you want to pass on extra optional parameters to the `messages->sendMessage(...)` method [from the Twilio SDK](https://www.twilio.com/docs/api/messaging/send-messages), you can do so by adding to the `message` method. All arguments are passed on, and the `from` field is prepended from configuration.

```
$twilio->message($to, $message, $mediaUrls, $params);
// passes all these arguments on.
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0af180aa4157ae5e3dec49ed362234c34aa5187f11121ccaeae98cb4a03af1c0?d=identicon)[chetanhub](/maintainers/chetanhub)

---

Top Contributors

[![chetanhub](https://avatars.githubusercontent.com/u/59956705?v=4)](https://github.com/chetanhub "chetanhub (1 commits)")

---

Tags

laravelsmstwilio

### Embed Badge

![Health badge](/badges/twilioman-twilio/health.svg)

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[aloha/twilio

Twilio API for Laravel

4733.6M5](/packages/aloha-twilio)[simplesoftwareio/simple-sms

Simple-SMS is a package made for Laravel to send/receive (polling/pushing) text messages. Currently supports CalLFire, EZTexting, Email Gateways, FlowRoute, LabsMobile, Mozeo, Nexmo, Plivo, Twilio, and Zenvia

20845.7k5](/packages/simplesoftwareio-simple-sms)[mrabbani/laravel_infobip

Simple-SMS is a package made for Laravel to send/receive (polling/pushing) text messages. Currently supports CallFire, EZTexting, Email Gateways, Mozeo, and Twilio.

112.9k](/packages/mrabbani-laravel-infobip)

PHPackages © 2026

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