d4rkstar/yii2-arubasms

Yii 2 Aruba SMS Api

Installs: 75

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2016-06-22 11:10 UTC

README

This widget will let you send SMS through the HTTP interface exposed by Aruba (http://guide.hosting.aruba.it/web-marketing/sms-aruba/invio-sms-tramite-api-sms-aruba.aspx).

Installation

The preferred way to install this extension is through composer.

Install

Either run

$ php composer.phar require d4rkstar/yii2-arubasms "dev-master"

or add

"d4rkstar/yii2-arubasms": "dev-master"

to the require section of your composer.json file.

Sample Usage

In the section components of your app/config/web.php, add:

'components' => [
    ...
    'arubasms' => require(__DIR__ . '/arubasms.php'),
]

Now, add a configuration file named app/config/arubasms.php, and add:

<?php
use d4rkstar\kannel\HttpSms;

return [
    'class'=>'d4rkstar\arubasms\HttpSms',

];
?>

Now, anywhere in your application, you can send an SMS:

<?php
    // sample code here
?>