Allow you to send sms using nexmo
Run
php composer.phar require docdocdoc/nexmo-bundle dev-master
Add in your AppKernel :
new DocDocDoc\NexmoBundle\DocDocDocNexmoBundle(),
in config.yml :
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 :
in config.yml :
Send by mail
doc_doc_doc_nexmo:
provider: doc_doc_doc_nexmo.send_mail
mail_to: [email protected]
mail_from: [default: [email protected]]
Just trash it
doc_doc_doc_nexmo:
provider: doc_doc_doc_nexmo.noop