2017 © Pedro Peláez
 

symfony-bundle nexmo-bundle

Send SMS with nexmo.com and symfony

image

docdocdoc/nexmo-bundle

Send SMS with nexmo.com and symfony

  • Tuesday, June 6, 2017
  • by cedriclombardot
  • Repository
  • 5 Watchers
  • 5 Stars
  • 618 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

DocDocDocNexmoBundle

Allow you to send sms using nexmo, (*1)

Installation

Run, (*2)

php composer.phar require docdocdoc/nexmo-bundle dev-master

Add in your AppKernel :, (*3)

new DocDocDoc\NexmoBundle\DocDocDocNexmoBundle(),

Configuration

in config.yml :, (*4)

doc_doc_doc_nexmo:
    api_key: YOUR_API_KEY
    api_secret: YOUR_API_SECRET

Usage

$message = new \DocDocDoc\NexmoBundle\Message\Simple("SenderId", "phone", "content of your sms");
$nexmoResponse = $this->container->get('doc_doc_doc_nexmo')->send($message);

Providers

For tests you can receive your sms in mail or just not send it :, (*5)

in config.yml :, (*6)

Send by mail, (*7)

doc_doc_doc_nexmo:
    provider: doc_doc_doc_nexmo.send_mail
    mail_to: email@allsmshere.com
    mail_from: [default: no-reply@nexmobundle.com]

Just trash it, (*8)

doc_doc_doc_nexmo:
    provider: doc_doc_doc_nexmo.noop

The Versions

06/06 2017

dev-master

9999999-dev

Send SMS with nexmo.com and symfony

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

sms nexmo