2017 © Pedro Peláez
 

symfony-bundle txtlocal

Wrapper for TxtLocal.co.uk

image

flotz/txtlocal

Wrapper for TxtLocal.co.uk

  • Friday, January 23, 2015
  • by FlorentMetz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 224 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TxtLocal Wrapper

This is just a Symfony Bundle Wrapper for Text Local with a bit of configuration., (*1)

Installation

In your composer.json file, add: ``` json { "require": { "flotz/txtlocal" : "dev-master" } }, (*2)


In your `app/AppKernel.php` file, add: ``` php { ... new Flotz\TxtLocalBundle\FlotzTxtLocalBundle(), ... }

In your app/config/config.yml:, (*3)

flotz_txt_local:
    username: your@email.com
    hash: "hash key here as provided by TextLocal"
    test: false # This is optional (default is true)
    apiKey: "api key here as provided by TextLocal" # This is optional

Then update your composer:, (*4)

``` bash $ composer update, (*5)


Usage ============ From a symfony controller: ```php // Note: $number could be a simple mobile number: $number = '447123123123'; // or a comma separated serie of numbers: $number = '447123123123, 447500400600'; // or an array of numbers: $number = array('447123123123', '447500400600'); // $message is the content of the received SMS $message = 'Thank you for using this bundle'; // $sender is the name that will appear as a sender $sender = 'Florent'; $this->get('flotz_txtlocal')->sendSms($number, $message, $sender); $balance = $this->get('flotz_txtlocal')->getBalance();

The Versions

23/01 2015

dev-master

9999999-dev

Wrapper for TxtLocal.co.uk

  Sources   Download

MIT

The Requires

 

by Florent Metz

php bundle symfony sms symfony bundle txtlocal textlocal

22/01 2015

1.0.0

1.0.0.0

Wrapper for TxtLocal.co.uk

  Sources   Download

MIT

The Requires

 

by Florent Metz

textlocal txtlocal