dev-master
9999999-devSend SMS with nexmo.com and symfony
MIT
The Requires
by Cedric LOMBARDOT
sms nexmo
Send SMS with nexmo.com and symfony
Allow you to send sms using nexmo, (*1)
Run, (*2)
php composer.phar require docdocdoc/nexmo-bundle dev-master
Add in your AppKernel :, (*3)
new DocDocDoc\NexmoBundle\DocDocDocNexmoBundle(),
in config.yml :, (*4)
doc_doc_doc_nexmo: api_key: YOUR_API_KEY api_secret: YOUR_API_SECRET
$message = new \DocDocDoc\NexmoBundle\Message\Simple("SenderId", "phone", "content of your sms"); $nexmoResponse = $this->container->get('doc_doc_doc_nexmo')->send($message);
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
Send SMS with nexmo.com and symfony
MIT
sms nexmo