PHPackages                             unimodern/yii2-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. [Image &amp; Media](/categories/media)
4. /
5. unimodern/yii2-twilio

ActiveLibrary[Image &amp; Media](/categories/media)

unimodern/yii2-twilio
=====================

This component is YII2 wrapper for Twilio PHP module. Forked from filipajdacic/yii2-twilio to publish stable

1.0.0(9y ago)015MITPHP

Since Jul 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/unimodern/yii2-twilio)[ Packagist](https://packagist.org/packages/unimodern/yii2-twilio)[ RSS](/packages/unimodern-yii2-twilio/feed)WikiDiscussions master Synced 3w ago

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

Twilio for Yii2
===============

[](#twilio-for-yii2)

This component is YII2 wrapper for Twilio PHP SDK.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist filipajdacic/yii2-twilio "*"

```

or add

```
"filipajdacic/yii2-twilio": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by putting this in your config:

```
'components' => array(
    ...
    'Yii2Twilio' => array(
        'class' => 'filipajdacic\yiitwilio\YiiTwilio',
        'account_sid' => 'YOUR_TWILIO_ACCOUNT_SID_HERE',
        'auth_key' => 'YOUR_TWILIO_AUTH_KEY_HERE',
    ),
    ...
);
```

After you have configured a component, you can use it for example in this way:

```
    $twilioService = Yii::$app->Yii2Twilio->initTwilio();

    try {
        $message = $twilioService->account->messages->create(array(
            "From" => "+12345678901", // From a valid Twilio number
            "To" => "+12345678901",   // Text this number
            "Body" => "Hello from my Yii2 Application!",
        ));
    } catch (\Services_Twilio_RestException $e) {
            echo $e->getMessage();
    }
```

For more SDK functions and usage documentation feel free to visit official Twilio PHP SDK documentation section [here](https://www.twilio.com/docs/libraries/php).

Resources
---------

[](#resources)

[This component on YiiFramework.com](http://www.yiiframework.com/extension/yii2-twilio/)

[Twilio.com](http://www.twilio.com)

If you have any questions, feel free to ask.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3633d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5674276?v=4)[Unimodern](/maintainers/Unimodern)[@unimodern](https://github.com/unimodern)

---

Top Contributors

[![filipajdacic](https://avatars.githubusercontent.com/u/4216693?v=4)](https://github.com/filipajdacic "filipajdacic (11 commits)")[![unimodern](https://avatars.githubusercontent.com/u/5674276?v=4)](https://github.com/unimodern "unimodern (3 commits)")

---

Tags

videosmsyii2extensionvoicetwillio

### Embed Badge

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

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

###  Alternatives

[trntv/yii2-glide

Yii2 Glide Extension

41273.6k9](/packages/trntv-yii2-glide)

PHPackages © 2026

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