streamlinesocial / sms-queue-bundle
Deliver SMS messages only at appropiate times
Installs: 500
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- tsslabs/vresh-twilio-bundle: dev-master
Requires (Dev)
- symfony/framework-bundle: >=2.1,<2.2-dev
This package is not auto-updated.
Last update: 2024-11-09 15:44:48 UTC
README
A symfony 2.1 bundle that sends SMS messages at appropiate times.
Usage:
// create a maessage $message = new Message ( ); $message->setPhoneNumber ( $phone ); $message->setTextMessage ( $text ); $extra = serialize ( $message );
// give it to control $control = $this->get ( 'str_social_sms_queue.control' ); $control->send ( $message );
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