项目作者: scaytrase

项目描述 :
binding for WebSMS.ru sms sending service
高级语言: PHP
项目地址: git://github.com/scaytrase/websms-php.git
创建时间: 2015-05-09T16:58:02Z
项目社区:https://github.com/scaytrase/websms-php

开源协议:GNU General Public License v2.0

下载


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

  1. composer require "scaytrase/websms-php"

Usage

  1. $driver = new JsonDriver();
  2. $connection = new Connection($driver, 'username', 'secret');
  3. // Optionally check that connection runs well
  4. // $connection->verify();
  5. // echo $connection->getBalance();
  6. $message = new Message('+79991234567', 'test message');
  7. $connection->send($message);