omgdef/unisender-wrapper

Unisender API wrapper

1.1.2 2020-04-11 06:31 UTC

This package is auto-updated.

Last update: 2024-12-11 16:35:37 UTC


README

UniSender API wrapper

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist omgdef/unisender-wrapper "dev-master"

or add

"omgdef/unisender-wrapper": "dev-master"

to the require section of your composer.json file.

Properties

Usage

Once the extension is installed, simply use it in your code by :

$obj = new \omgdef\unisender\UniSenderWrapper();
$obj->testMode = true;
$obj->apiKey = 'some_key_here';
$response = $obj->sendSms(['phone' => '123123123', 'text' => 'text']);