2017 © Pedro Peláez
 

library yii-sms-manager

Yii Component for sending SMS with gateway balancing and events for low balance alert

image

fduch2k/yii-sms-manager

Yii Component for sending SMS with gateway balancing and events for low balance alert

  • Tuesday, September 16, 2014
  • by fduch2k
  • Repository
  • 2 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SMS Manager for Yii 1.x framework with balancing, balance watching and notifications

This extension allows you setup several sms gateway with built-in balance watching and low balance or sending problems notification., (*1)

Instalation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist fduch2k/yii-sms-manager "*"

or add, (*4)

"fduch2k/yii-sms-manager": "*"

to the require section of your composer.json., (*5)

Configuration

To use this extension, you have to configure the Connection class in your application configuration:, (*6)

return array(
    //....
    'components' => array(
        'sms' => array(
            'class'=>'TSSmsManager',
            'alertPhone'=>'mobile phone number for sending sms with notification',
            'alertEmail'=>'email for sending notification',
            'gateways'=>array(
                array(
                    'class'=>'TSAtomParkGateway',
                    'sender'=>'senderid1',
                    'username'=>YOUR_USERNAME,
                    'password'=>YOUR_PASSWORD,
                ),
                array(
                    'class'=>'TSSmsFeedBackGateway',
                    'sender'=>'senderid2',
                    'username'=>YOUR_USERNAME,
                    'password'=>YOUR_PASSWORD,
                ),
            ),
        ),
    )
);

Usage

This code will send 2 sms to $phoneNumber1 - 'Hello, Alex. Your password is qwerty' and $phoneNumber2 - 'Hello, Peter! Your password is 123456', (*7)

Yii::app()->sms->send(
    array(
        array(
            $phoneNumber1=>array('Alex', 'qwerty'), 
            $phoneNumber2=>array('Peter', '123456')
        )
    ), 
    'Hello, %1%! Your password is %2%'
);

The Versions

16/09 2014

dev-master

9999999-dev

Yii Component for sending SMS with gateway balancing and events for low balance alert

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

by Alexander Hramov
by Victor Tuyrin

sms yii epochta atompark smsfeedback

16/09 2014

0.1.4

0.1.4.0

Yii Component for sending SMS with gateway balancing and events for low balance alert

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

by Alexander Hramov
by Victor Tuyrin

sms yii epochta atompark smsfeedback

16/09 2014

0.1.3

0.1.3.0

Yii Component for sending SMS with gateway balancing and events for low balance alert

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

by Alexander Hramov
by Victor Tuyrin

sms yii epochta atompark smsfeedback

11/09 2014

0.1.2

0.1.2.0

Yii Component for sending SMS with gateway balancing and events for low balance alert

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

by Alexander Hramov
by Victor Tuyrin

sms yii epochta atompark smsfeedback