PHP code example of albertborsos / yii2-clickatell

1. Go to this page and download the library: Download albertborsos/yii2-clickatell library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

albertborsos / yii2-clickatell example snippets


'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
    ),
    ...
);

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

php composer.phar