Laravel Clickatell Bundle

Made by Netsells

View the Project on GitHub netsells/laravel-clickatell

Install

In terminal, paste in this

php artisan bundle:install clickatell
or
git clone git@github.com:netsells/laravel-clickatell.git bundles/clickatell

Then add this to the bundles.php array

'clickatell' => array('auto' => true),

Usage

Send to one number

$message = new Clickatell;

$status = $message->to('00000000000')
                ->message('Hello world!')
                ->send();

Send the same message to multiple numbers

$message = new Clickatell;

$status = $message->to(array('00000000000', '11111111111', '22222222222'))
                ->message('Hello world!')
                ->send();

Responses

Failed

$status = array('status' => 'failed', 'message' => 'Error Message');

Success

$status = array('status' => 'success', 'id' => 'AABBCCDDEEFF');