2017 © Pedro Peláez
 

library yii-esmsc

Extension for sending SMS messages

image

nek-v/yii-esmsc

Extension for sending SMS messages

  • Thursday, July 16, 2015
  • by nek-v
  • Repository
  • 0 Watchers
  • 1 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 21 % Grown

The README.md

Yii SMS send extension

Latest Stable Version License, (*1)

This extension is designed to send sms messages through different services and protocols. You can add your providers extending class ESMSCProvider. See the examples in the directory providers, (*2)

Resources

Requirements

  • PHP 5.3+
  • Yii 1.1 or above

Installation

  • Configure your composer.json as in the example below
...
"require": {
    "nek-v/yii-esmsc"
}
...
  • Or extract the files with the extension in the protected/extensions
  • In your protected/config/main.php, add the following:
<?php
...
'aliases' => array(
    // Path to vendor dir
    'vendor'    => realpath(__DIR__ . '/../vendor'),
),
'import'    => array(
    'vendor.nek-v.yii-esmsc.*',
),
'components'    => array(
    'sms'   => array(
        'class' => 'vendor.nek-v.yii-esmsc.ESMSC',
        'provides'  => array(
            'dummy' => array(
                'class' => 'DummyProvider'
            ),
            'smpp'  => array(
                'class'     => 'SMPPProvider',
                'server'    => 'smpp server',
                'port'      => 'smpp port',
                'login'     => 'smpp login',
                'password'  => 'smpp passwod',
                'source'    => 'sender name'
            )
        )
    )
)
...

Usage

<?php
class SiteController extends CController {
    public function actionIndex() {
        $text = 'Hello world!';
        $phone = '1234567891011';
        $provider = Yii::app()->sms;
        // Dummy
        $provider->getInstance('dummy')->send($phone, $text);
        // SMPP
        $provider->getInstance('smpp')->send($phone, $text);
    }
}

The Versions

16/07 2015

dev-master

9999999-dev https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

16/07 2015

1.0.3

1.0.3.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

19/12 2014

1.0.2

1.0.2.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

19/12 2014

1.0.1

1.0.1.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

19/12 2014

1.0.0

1.0.0.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

17/11 2014

0.0.2

0.0.2.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting

17/11 2014

0.0.1

0.0.1.0 https://github.com/nek-v/yii-esmsc

Extension for sending SMS messages

  Sources   Download

MIT

The Requires

 

by Avatar Nek

sms yii smpp texting