Free Mobile for Yii ¶
This package provides a single class,
which is a log target allowing to send log messages by SMS to a mobile phone.
To use it, you must have a Free Mobile account and have enabled SMS Notifications in the Options of your Subscriber Area.
From a command prompt, run:
[sh] $ composer require cedx/yii2-free-mobile
Now in your application configuration file, you can use the following log route:
return [ 'bootstrap' => [ 'log' ], 'components' => [ 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FreeMobileTarget', 'levels' => ['error'], 'password' => '<your Free Mobile identification key>', 'userName' => '<your Free Mobile user name>' ] ] ] ] ];
See Also ¶
Free Mobile for Yii is distributed under the Apache License, version 2.0.