knyga / sms-sender
Component for Yii Framework based application which provides simple configuration interface for sending sms notifications with popular services.
dev-master
2014-11-17 21:25 UTC
Requires
- php: >=5.3.0
- yiisoft/yii: 1.1.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-31 03:27:51 UTC
README
'smser' => array( 'class' => 'vendor.knyga.sms-sender.SmsSenderComponent', 'options' => array( 'login' => '', 'password' => '', 'sender' => '' ), 'serviceName' => 'smsc', ),
Yii::app()->smser->sendMessage('+380976290873', 'text');
Yii::app()->smser->setOptions(array( 'login' => '', 'password' => '', 'sender' => '' ));
$message = Yii::app()->smser->renderMessage('//sms/hello', array('name' => 'Oleks Knigge')); Yii::app()->smser->sendMessage('+380976290873', $message);