free-mobile Free Mobile logging: send log messages by SMS to a mobile phone.

Free Mobile for Yii

  1. Requirements
  2. Installing via Composer
  3. See Also
  4. License

Release License Downloads Code quality Build

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.

2 0
3 followers
606 downloads
Yii Version: 2.0
License: Apache-2.0
Category: Logging
Developed by: CedX
Created on: Oct 18, 2014
Last updated: 7 years ago

Downloads

show all

Related Extensions