scaytrase/websms-php

Simple library to send SMS via WebSMS.ru service

1.0.1 2019-09-20 07:09 UTC

This package is auto-updated.

Last update: 2024-09-26 05:02:26 UTC


README

Build Status Latest Stable Version Latest Unstable Version Total Downloads SensioLabsInsight Scrutinizer Code Quality

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);