symfony-websms-bridge
, (*1)
, (*2)
This is the bridge implementing a web transport for scaytrase/symfony-sms-interface for WebSMS sending service with this bindings, (*3)
Features
Available
- [x] Single message sending
- [x] Http(Form) and JSON drivers
- [x] Balance could be extracted from connection after each send
Planned
- [ ] Bulk message sending
- [ ] Sender alias (not supported in the library at the moment)
Installation
Bundle could be installed via composer, (*4)
composer.json
composer require scaytrase/symfony-websms-bundle:~1.0
app/AppKernel.php
Enable the bundle by including it into your application kernel (AppKernel.php):, (*5)
$bundles = array(
//....
new ScayTrase\Utils\WebSMSBundle\WebSMSBundle(),
//....
);
Configuration
For now bundle own only essential properties from the underlying library. They could be configured as following (example and default values):, (*6)
web_sms:
connection:
login: null # Login is required to send messages.
secret: null # Tech secret or account password (both work) is required to send messages
mode: 0 # 0 is for production mode. 1 is for testing mode (valid credentials required). -1 is for debug purpose (credentials not needed, sending does not occures, valid credentials not required)