2017 © Pedro Peláez
 

yii2-extension yii2-twillio

yii 2 twillio integration

image

bryglen/yii2-twillio

yii 2 twillio integration

  • Wednesday, August 5, 2015
  • by bryglen
  • Repository
  • 3 Watchers
  • 1 Stars
  • 2,314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Yii 2 Twillio

twillio for yii 2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist bryglen/yii2-twillio "*"

or add, (*4)

"bryglen/yii2-twillio": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, you should configure it in the application configuration like the following,, (*6)

'components' => [
    'twillio' => [
        'class' => 'bryglen\yii2-twillio\Twillio',
        'sid' => 'your_sid',
        'token' => 'your_token',
    ]
]

** Creating a customer, (*7)

$twillio = Yii::$app->twillio;
$message = $twillio->getClient()->account->messages->sendMessage(
    '9991231234', // From a valid Twilio number
    '8881231234', // Text this number
    "Hello monkey!"
)

print $message->sid;

The Versions

05/08 2015

dev-master

9999999-dev

yii 2 twillio integration

  Sources   Download

MIT

The Requires

 

by Bryan Tan

yii2 extension php twillio