Free Mobile for Yii ¶
Free Mobile logging for Yii, high-performance PHP framework.
This package provides a single class, yii\log\FreeMobileTarget
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.
Requirements ¶
The latest PHP and Composer versions. If you plan to play with the sources, you will also need the Phing latest version.
Installing via Composer ¶
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 ¶
License ¶
Free Mobile for Yii is distributed under the Apache License, version 2.0.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.