Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docdocdoc/nexmobundle
Send SMS with nexmo.com and symfony
https://github.com/docdocdoc/nexmobundle
bundle php symfony symfony-bundle symfony2 symfony3
Last synced: about 1 month ago
JSON representation
Send SMS with nexmo.com and symfony
- Host: GitHub
- URL: https://github.com/docdocdoc/nexmobundle
- Owner: docdocdoc
- License: mit
- Created: 2014-08-07T13:51:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T15:12:22.000Z (over 7 years ago)
- Last Synced: 2024-10-13T06:04:23.939Z (about 1 month ago)
- Topics: bundle, php, symfony, symfony-bundle, symfony2, symfony3
- Language: PHP
- Size: 9.77 KB
- Stars: 5
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DocDocDocNexmoBundle
Allow you to send sms using nexmo
## Installation
Run
````
php composer.phar require docdocdoc/nexmo-bundle dev-master
````Add in your AppKernel :
````
new DocDocDoc\NexmoBundle\DocDocDocNexmoBundle(),
````## Configuration
in config.yml :
````
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 :
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
````