Skip to content

albertborsos/yii2-clickatell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 - Clickatell

Yii2 extension implements Clickatell SMS sender

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist "albertborsos/yii2-clickatell:0.4.*"

or add

"albertborsos/yii2-clickatell": "*"

to the require section of your composer.json file.

Usage

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

'components' => array(
    ...
    'clickatell' => array(
        'class' => 'albertborsos\clickatell\ClickatellHttp',
        'username' => 'your clickatell user',
        'password' => 'your clickatell password',
        'apiId' => 'your clickatell api id',
        'from' => '+36xxxxxxxx' // optional parameter,
        'mo' => 1 // optional parameter
    ),
    ...
);

Then:

Yii::$app->clickatell->sendMessage('+36xxxxxxxxx', 'Hello world!');

About

Clickatell extension for Yii 2.0 framework. Based on arcturial/clickatell package.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages