dev-master
9999999-devyii 2 twillio integration
MIT
The Requires
by Bryan Tan
yii2 extension php twillio
yii 2 twillio integration
twillio for yii 2, (*1)
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)
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;
yii 2 twillio integration
MIT
yii2 extension php twillio