matejch/bsms-api-handler

Implementation of request for sending sms with viamobile bsms

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/matejch/bsms-api-handler

v1.0 2021-08-21 20:39 UTC

This package is auto-updated.

Last update: 2025-09-29 03:05:56 UTC


README

Api for sending sms with viamobile bsms

https://www.smsmarketing.sk/

Api info

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist matejch/bsms-api-handler "^1.0"

or add

"matejch/bsms-api-handler": "^1.0"

to the require section of your composer.json file.

Usage

First register at https://www.smsmarketing.sk/

For using api username and password is required

Sending sms

$sender = new \matejch\bsmsApiHandler\BsmsSender($username, $password);

/** multiple sms can be sent at once */
$sender->addSms($id,$phoneNum,$message);
$sender->addSms($id2,$phoneNum2,$message2);

$sender->send();

Inquiring delivery status

$sender = new \matejch\bsmsApiHandler\BsmsPullDelivery($username, $password);

/** multiple deliveries can be requested at once */
$sender->addDelivery($id) //id of sms used in addSms method
$sender->addDelivery($id2);

$sender->send();