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

ActiveSymfony-bundle

webonaute/twilio-bundle
=======================

Symfony 5 / PHP 7 wrapper for the official Twilio SDK v6

6.0.4(5y ago)03.0kMITPHPPHP &gt;=7.4

Since Oct 20Pushed 4y agoCompare

[ Source](https://github.com/Webonaute/WebonauteTwilioBundle)[ Packagist](https://packagist.org/packages/webonaute/twilio-bundle)[ Docs](https://github.com/Webonaute/WebonauteTwilioBundle)[ RSS](/packages/webonaute-twilio-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (18)Used By (0)

\#Symfony Twilio Bundle (for PHP SDK v5)

About
-----

[](#about)

A quick and easy way to use the Twilio SDK (version 6) in a Symfony based application.

Support for PHP 7.4+ and Symfony 5.x

For full documentation about how to use the Twilio Client, see the [official SDK](https://github.com/twilio/twilio-php) provided by [Twilio](http://www.twilio.com/).

Thank you for the awesome work of [mblackford](https://github.com/mblackford/BlackfordTwilioBundle) who created the version of this bundle, with support for version 5 of the SDK. Thank you for the awesome work of [Fridolin Koch](http://fkse.io) who created the first version of this bundle, with support for version 4 of the SDK.

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

[](#installation)

Add this to your `composer.json` file:

```
"require": {
	"webonaute/twilio-bundle": "~6.0",
}
```

This will automatically include the `twilio/sdk` dependency into your project.

Add the bundle to `app/AppKernel.php`

```
$bundles = array(
	// ... other bundles
	new Webonaute\TwilioBundle\WebonauteTwilioBundle(),
);
```

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

[](#configuration)

Add this to your `config.yml`:

```
blackford_twilio:
    # (Required) Username to authenticate with, typically your Account SID from www.twilio.com/user/account
    username: 'TODO'

    # (Required) Password to authenticate with, typically your Auth Token from www.twilio.com/user/account
    password: 'TODO'

    # (Optional) Account Sid to authenticate with, defaults to  (typically not required)
    # accountSid:

    # (Optional) Region to send requests to, defaults to no region selection (typically not required)
    # region:
```

Usage
-----

[](#usage)

Provided services:

ServiceClass`twilio.client``\Twilio\Rest\Client`Inside a controller:

```
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Twilio\Rest\Client;

class TestController extends Controller
{
    public function smsAction()
    {
        /** @var \Twilio\Rest\Client */
    	$twilio = $this->get('twilio.client');

        $date = date('r');

        $message = $twilio->messages->create(
            '+12125551234', // Text any number
            array(
                'from' => '+14085551234', // From a Twilio number in your account
                'body' => "Hi there, it's $date and Twilio is working properly."
            )
        );

        return new Response("Sent message [$message->sid] via Twilio.");
    }
}
```

Inside a console command:

```
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Twilio\Rest\Client;

class TwilioTestCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this
            ->setName('twilio:test:sms')
            ->setDescription('Test the Twilio integration by sending a text message.')
        ;
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        //** @var \Twilio\Rest\Client */
        $twilio = $this->get('twilio.client');

         $date = date('r');

         $message = $twilio->messages->create(
             '+12125551234', // Text any number
             array(
                 'from' => '+14085551234', // From a Twilio number in your account
                 'body' => "Hi there, it's $date and Twilio is working properly."
             )
         );

        $output->writeln("Sent message [$message->sid] via Twilio.");
    }
}
```

Copyright / License
-------------------

[](#copyright--license)

See [LICENSE](LICENSE)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~192 days

Recently: every ~0 days

Total

17

Last Release

1873d ago

Major Versions

0.5.0 → v1.0.02016-02-06

1.0.2 → v5.0.02016-11-27

v5.0.1 → 6.02021-03-30

PHP version history (2 changes)v0.2PHP &gt;=5.3.2

6.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/21aade44b58316841ba31de66ba2f3734fad35679a05c6a9d6f7aa2a296163d1?d=identicon)[Webonaute](/maintainers/Webonaute)

---

Top Contributors

[![fridolin-koch](https://avatars.githubusercontent.com/u/1880828?v=4)](https://github.com/fridolin-koch "fridolin-koch (51 commits)")[![mblackford](https://avatars.githubusercontent.com/u/2366796?v=4)](https://github.com/mblackford "mblackford (10 commits)")[![Webonaute](https://avatars.githubusercontent.com/u/1700815?v=4)](https://github.com/Webonaute "Webonaute (8 commits)")[![StudioMaX](https://avatars.githubusercontent.com/u/9878458?v=4)](https://github.com/StudioMaX "StudioMaX (6 commits)")[![josephnle](https://avatars.githubusercontent.com/u/2822954?v=4)](https://github.com/josephnle "josephnle (4 commits)")[![jasonroman](https://avatars.githubusercontent.com/u/2953795?v=4)](https://github.com/jasonroman "jasonroman (2 commits)")[![bonswouar](https://avatars.githubusercontent.com/u/615053?v=4)](https://github.com/bonswouar "bonswouar (1 commits)")[![joshugroupdev](https://avatars.githubusercontent.com/u/101131887?v=4)](https://github.com/joshugroupdev "joshugroupdev (1 commits)")[![jeremib](https://avatars.githubusercontent.com/u/565742?v=4)](https://github.com/jeremib "jeremib (1 commits)")[![pmartelletti](https://avatars.githubusercontent.com/u/557390?v=4)](https://github.com/pmartelletti "pmartelletti (1 commits)")[![Bukashk0zzz](https://avatars.githubusercontent.com/u/1908342?v=4)](https://github.com/Bukashk0zzz "Bukashk0zzz (1 commits)")

---

Tags

twilio

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[botman/driver-twilio

Twilio driver for BotMan

1227.7k2](/packages/botman-driver-twilio)[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)
