scaytrase/symfony-websms-bundle

Bridge for WebSMS sending transport

2.0 2016-05-03 07:09 UTC

This package is auto-updated.

Last update: 2024-04-26 03:43:53 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Monthly Downloads Daily Downloads

This is the bridge implementing a web transport for scaytrase/symfony-sms-interface for WebSMS sending service with this bindings

Features

Available

  • Single message sending
  • Http(Form) and JSON drivers
  • Balance could be extracted from connection after each send

Planned

  • Bulk message sending
  • Sender alias (not supported in the library at the moment)

Installation

Bundle could be installed via composer

composer.json

composer require scaytrase/symfony-websms-bundle:~1.0

app/AppKernel.php

Enable the bundle by including it into your application kernel (AppKernel.php):

$bundles = array(
    //....
    new ScayTrase\Utils\WebSMSBundle\WebSMSBundle(),
    //....
    );

Configuration

For now bundle own only essential properties from the underlying library. They could be configured as following (example and default values):

web_sms:
    connection:
        login:  null # Login is required to send messages.
        secret: null # Tech secret or account password (both work) is required to send messages
        mode: 0 # 0 is for production mode. 1 is for testing mode (valid credentials required). -1 is for debug purpose (credentials not needed, sending does not occures, valid credentials not required)