2017 © Pedro Peláez
 

symfony-bundle esendex-bundle

Boskee Esendex Bundle for Symfony

image

boskee/esendex-bundle

Boskee Esendex Bundle for Symfony

  • Thursday, October 31, 2013
  • by boskee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,550 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 56 % Grown

The README.md

Boskee Esendex Bundle

By boskee, (*1)

Build Status Latest Stable Version Total Downloads, (*2)

This bundle enables you to use Esendex SDK as a service in your Symfony project., (*3)

For more information see the esendex/sdk repository and the Esendex REST API., (*4)

Requirements

Installation

Add in your composer.json

{
    "require": {
        "boskee/esendex-bundle": "dev-master"
    }
}

Install the bundle

``` bash $ curl -s http://getcomposer.org/installer | php $ php composer.phar update boskee/esendex-bundle, (*5)


Composer will install the bundle to your project's `vendor/boskee` directory. ### Enable the bundle via the kernel ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Boskee\EsendexBundle\BoskeeEsendexBundle(), ); }

Configuration

config.yml

boskee_esendex:
    account_reference: "..."
    username: "..."
    password: "..."

Usage

After installation and configuration, the service can be directly referenced from within your controllers., (*6)

<?php

$esendex = $this->get('boskee_esendex.dispatcher');

// Create a Text Message
$message = new Boskee\EsendexBundle\Model\TextMessage();
$message->setOriginator('Boskee');
$message->setRecipient('01234567890');
$message->setBody('Test message');

$response = $esendex->send($message->prepare());

License

This bundle is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*7)

The Versions

31/10 2013

dev-master

9999999-dev https://github.com/boskee/esendex-bundle

Boskee Esendex Bundle for Symfony

  Sources   Download

MIT

The Requires

 

bundle symfony sms esendex boskee