Skip to content

scaytrase/websms-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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