sevenfloor / api-i-digital
There is no license information available for the latest version (dev-master) of this package.
dev-master
2017-10-13 15:52 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2024-11-10 05:41:01 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require sevenfloor/api-i-digital:dev-master
or add
"sevenfloor/api-i-digital": "dev-master"
to the require section of your composer.json
file.
Usage
Add this to your main configuration's components array:
'sms' => function () { $component = new \sevenfloor\apiidigital\Client('base_uri'); $component->node_id = 'node_id'; $component->password = 'password'; return $component; },
Typical component usage
$sms = \Yii::$app->smsnew; $body = new \sevenfloor\apiidigital\Body(\sevenfloor\apiidigital\Body::TYPE_TEXT, 'test'); // send message var_dump($sms->message($body, 'source_name', 'desctination')); // receive status var_dump($sms->receive());