PHPackages                             samarqusai/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. [API Development](/categories/api)
4. /
5. samarqusai/twilio-bundle

ActiveSymfony-bundle[API Development](/categories/api)

samarqusai/twilio-bundle
========================

A simple Symfony 2, 3 bundle for the official sdk provided by Twilio.

1.0.2(9y ago)019MITPHPPHP &gt;=5.3.2

Since Oct 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SamarQusai/VreshTwilioBundle)[ Packagist](https://packagist.org/packages/samarqusai/twilio-bundle)[ Docs](https://github.com/fridolin-koch/VreshTwilioBundle)[ RSS](/packages/samarqusai-twilio-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (11)Used By (0)

\#Symfony2 Twilio Bundle - by [Fridolin Koch](http://fkse.io)

[![Build Status](https://camo.githubusercontent.com/15045d39e2cbbd8d5e4c194f8f340f4891f6c88f1f7618280a99d07ba33f5b63/68747470733a2f2f7472617669732d63692e6f72672f667269646f6c696e2d6b6f63682f56726573685477696c696f42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/fridolin-koch/VreshTwilioBundle)

[![Coverage Status](https://camo.githubusercontent.com/a4546f3fdb19c58b2b090ea2aa8e953017e3e030e9afd4bc572804ff8a3f7fed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f667269646f6c696e2d6b6f63682f56726573685477696c696f42756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/fridolin-koch/VreshTwilioBundle?branch=master)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cb5f39a333f53f784c43fcf594e4981fb5f7d1721cce22f448cdb92c94bbd096/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f667269646f6c696e2d6b6f63682f56726573685477696c696f42756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fridolin-koch/VreshTwilioBundle/?branch=master)

About
-----

[](#about)

This is just a wrapper for the [official SDK](https://github.com/twilio/twilio-php) provided by [Twilio](http://www.twilio.com/).

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

[](#installation)

Add this to your `composer.json` file:

```
"require": {
	"vresh/twilio-bundle": "dev-master",
}
```

Add the bundle to `app/AppKernel.php`

```
$bundles = array(
	// ... other bundles
	new Vresh\TwilioBundle\VreshTwilioBundle(),
);
```

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

[](#configuration)

Add this to your `config.yml`:

```
vresh_twilio:
    #(Required) Your Account SID from www.twilio.com/user/account
    sid: 'XXXXXXXX'
    #(Required) Your Auth Token from www.twilio.com/user/account
    authToken: 'YYYYYYYY'
    #(Optional, default: '2010-04-01') Twilio API version
    version: '2010-04-01'
    #(Optional, default: 1) Number of times to retry failed requests
    retryAttempts: 3
```

Usage
-----

[](#usage)

Provided services:

ServiceClass`twilio.api``\Services_Twilio``twilio.capability``\Services_Twilio_Capability``twilio.lookups``\Lookups_Services_Twilio`Inside a controller:

```
class TelephoneController extends Controller
{
    public function callAction($me, $maybee)
    {
        //returns an instance of Vresh\TwilioBundle\Service\TwilioWrapper
    	$twilio = $this->get('twilio.api');

        $message = $twilio->account->messages->sendMessage(
	  '+14085551234', // From a Twilio number in your account
	  '+12125551234', // Text any number
	  "Hello monkey!"
	);

        //get an instance of \Service_Twilio
        $otherInstance = $twilio->createInstance('BBBB', 'CCCCC');

        return new Response($message->sid);
    }
}
```

Inside a console command:

```
class SomeCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this
            ->setName('some:comand')
            ->setDescription('A command')
        ;
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        //returns an instance of Vresh\TwilioBundle\Service\TwilioWrapper
        $twilio = $this->getContainer()->get('twilio.api');

        $message = $twilio->account->messages->sendMessage(
	  '+14085551234', // From a Twilio number in your account
	  '+12125551234', // Text any number
	  "Hello monkey!"
	);

        //get an instance of \Service_Twilio
        $otherInstance = $twilio->createInstance('BBBB', 'CCCCC');

        print $message->sid;

    }
}
```

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

[](#copyright--license)

See [LICENSE](https://github.com/fridolin-koch/VreshTwilioBundle/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 72.9% 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 ~155 days

Recently: every ~191 days

Total

10

Last Release

3555d ago

Major Versions

0.5.0 → v1.0.02016-02-06

### Community

Maintainers

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

---

Top Contributors

[![fridolin-koch](https://avatars.githubusercontent.com/u/1880828?v=4)](https://github.com/fridolin-koch "fridolin-koch (51 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)")[![SamarQusai](https://avatars.githubusercontent.com/u/11337264?v=4)](https://github.com/SamarQusai "SamarQusai (3 commits)")[![jasonroman](https://avatars.githubusercontent.com/u/2953795?v=4)](https://github.com/jasonroman "jasonroman (2 commits)")[![jeremib](https://avatars.githubusercontent.com/u/565742?v=4)](https://github.com/jeremib "jeremib (1 commits)")[![Bukashk0zzz](https://avatars.githubusercontent.com/u/1908342?v=4)](https://github.com/Bukashk0zzz "Bukashk0zzz (1 commits)")[![bonswouar](https://avatars.githubusercontent.com/u/615053?v=4)](https://github.com/bonswouar "bonswouar (1 commits)")[![pmartelletti](https://avatars.githubusercontent.com/u/557390?v=4)](https://github.com/pmartelletti "pmartelletti (1 commits)")

---

Tags

twilio

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[aloha/twilio

Twilio API for Laravel

4733.6M5](/packages/aloha-twilio)

PHPackages © 2026

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