scaytrase / websms-php
Simple library to send SMS via WebSMS.ru service
1.0.1
2019-09-20 07:09 UTC
Requires
- php: >=5.3.3
- kriswallsmith/buzz: ^0.16
Requires (Dev)
- phpunit/phpunit: ~4.2@stable
This package is auto-updated.
Last update: 2024-11-26 05:17:43 UTC
README
WebSMS PHP Library
A tiny library for sending SMS via WebSMS gateway. This gateway requires you to be registered in order to send SMS.
Installation
The best way to handle dependencies is to use Composer
Composer
composer require "scaytrase/websms-php"
Usage
$driver = new JsonDriver(); $connection = new Connection($driver, 'username', 'secret'); // Optionally check that connection runs well // $connection->verify(); // echo $connection->getBalance(); $message = new Message('+79991234567', 'test message'); $connection->send($message);