2017 © Pedro Peláez
 

symfony-bundle smssender-bundle

Symfony2 bundle to interact with gergelypolonkai/smssender

image

appventus/smssender-bundle

Symfony2 bundle to interact with gergelypolonkai/smssender

  • Sunday, June 9, 2013
  • by lenybernard
  • Repository
  • 3 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SmsSenderBundle

This bundle integrates with gergelypolonkai/smssender to send SMS messages through gergelypolonkai/smsgateway., (*1)

Installation

Simply add gergelypolonkai/smssender-bundle to your Symfony2 project's composer.json file, and run, (*2)

php composer.phar update

Configuration

Everything is configurable through the Symfony project's configuration files. In YML format, the possibilities are:, (*3)

gergely_polonkai_sms_sender:

    # This must be set, as it has no default value
    sender_url: http://localhost/smsgateway

    # The username/password to use to login to SmsGateway. No default values
    # are available, either
    username: gateway-user
    password: gateway-password

    # This defaults to true. You should set this to false if you use
    # self-signed certificates
    verify_ssl: true

    # This is the default value. Currently SmsGateway requires this to be
    # be set to application/json
    content_type: application/json

    # The content-encoding of the data you send to the server. This must be
    # UTF-8 if you want to send an SMS with non-ascii characters.
    content-encoding: utf-8

    # This should be turned on only for debugging purposes. It makes CURL to
    # log every traffic it makes with SmsGateway.
    verbose_curl: false

Usage

Everything is done via the gergely_polonkai_sms_sender.sender service., (*4)

$sender = $container->get('gergely_polonkai_sms_sender.sender');
$sender->login();
$sender->send('+155523456789', 'Hello world!', array());
$sender->logout();

The Versions

09/06 2013

dev-master

9999999-dev https://github.com/gergelypolonkai/smssender-bundle

Symfony2 bundle to interact with gergelypolonkai/smssender

  Sources   Download

The Requires

 

by Gergely Polonkai

04/11 2012

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/gergelypolonkai/smssender-bundle

Symfony2 bundle to interact with gergelypolonkai/smssender

  Sources   Download

The Requires

 

by Gergely Polonkai