- PHP 5.3+
- redis 2.1.7+
- phpredis - tested with: nicolasff/phpredis@1d6133d4cfc71c555ab4b8551d2818925f7cb444 must support brpoplpush
- igbinary (optional)
- php extensions
- posix
- pcntl
- sockets
- pcre
- mbstring
This project use the following submodule onlinecity/php-smpp.
So remember to initialize it when you checkout this project:
git submodule init && git submodule update
Run start.php to startup all processes, then inject messages into queue with script below.
<?php
require_once 'queuemodel.class.php';
$options = parse_ini_file('options.ini',true);
$q = new QueueModel($options);
$m = array();
for ($n=0;$n<10;$n++) {
$r = array();
for($i=0;$i<100;$i++) {
$r[] = 4512345678;
}
$m[] = new SmsMessage(1234, 'Test', 'Lorem ipsum', $r);
}
$q->produce($m);
You'll find all configurable options in the options.ini file.