d4rkstar / yii2-arubasms
Yii 2 Aruba SMS Api
Installs: 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-10-12 10:47:00 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
?>