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

ActiveYii2-extension[API Development](/categories/api)

autoxloo/yii2-twilio
====================

Yii2 wrap of Twilio sms PHP SDK

1.0(7y ago)045BSD-3-ClausePHPPHP &gt;=5.5.0

Since Sep 20Pushed 4y ago2 watchersCompare

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

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

Yii2 wrap of Twilio sms PHP SDK
===============================

[](#yii2-wrap-of-twilio-sms-php-sdk)

Yii2 wrap of [Twilio sms PHP SDK](https://www.twilio.com/docs/libraries/php)

> Note: This package is not supported properly

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

[](#installation)

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

Either run

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

```

or

```
composer require --prefer-dist autoxloo/yii2-twilio "*"

```

or add

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

```

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

Config
------

[](#config)

In your application config add:

```
// ...
'components' => [
        // ...
        'twilioSms' => [
            'class' => \autoxloo\yii2\twilio\sms\TwilioSms::class,
            'sid' => 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',          // Your Account Sid from twilio.com/user/account
            'token' => 'your_auth_token',                           // Your Account Auth Token from twilio.com/user/account
        ],
],
```

Usage
-----

[](#usage)

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

```
\Yii::$app->twilioSms->sendSms(
    '+15558675309',                                         // the number you'd like to send the message to
    [
        TwilioSms::OPTION_FROM => '+15017250604',                           // A Twilio phone number you purchased at twilio.com/console
        TwilioSms::OPTION_BODY => 'Hey Jenny! Good luck on the bar exam!',  // the body of the text message you'd like to send
    ]
);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

2791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e0af05c82328c2e95f5808024281b4f3779bed0a7abb450943973f1f6388472?d=identicon)[autoxloo](/maintainers/autoxloo)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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