symfony-bundle sms-queue-bundle
Deliver SMS messages only at appropiate times
streamlinesocial/sms-queue-bundle
Deliver SMS messages only at appropiate times
- Wednesday, September 25, 2013
- by nachinius
- Repository
- 6 Watchers
- 1 Stars
- 494 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
SmsQueueBundle
A symfony 2.1 bundle that sends SMS messages at appropiate times., (*1)
Usage:, (*2)
// create a maessage
$message = new Message ( );
$message->setPhoneNumber ( $phone );
$message->setTextMessage ( $text );
$extra = serialize ( $message );, (*3)
// give it to control
$control = $this->get ( 'str_social_sms_queue.control' );
$control->send ( $message );, (*4)
Configuration Example
twilio.api.class: Vresh\TwilioBundle\Twilio\Twilio
str_social_sms_queue.twilio.from: "%twilio.phone_number%"
str_social_sms_queue.twilio.parameters:
# you must replate following values with proper ones from twilio
sid: "%twilio.sid%"
authToken: "%twilio.authToken%"
# if 'off' or anything that php will consider empty then the queue
# stop/start will not happen.
str_social_sms_queue.queue.start: 22:00:00
str_social_sms_queue.queue.stop: 08:00:00