merlinthemagic / mtm-queues
Message Queueing tools for PHP 7
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/merlinthemagic/mtm-queues
Requires
- php: >=7.3.0
- merlinthemagic/mtm-utilities: >=0.0.3
This package is auto-updated.
Last update: 2025-09-28 18:28:15 UTC
README
System V:
Get a queue:
$name = "myQueueName";
$perm = "0600";
$msgFact = \MTM\Queues\Factories::getMessages()->getSystemFive();
$queueObj = $msgFact->getQueue($name, $perm);
Add a message to the queue
$data = "some data";
$type = 1; //1 is default
$queueObj->setData($data, $type);
get a message to the queue
$type = 0; //0 is return any message, if you are looking for a specific message type, change this
$msgObj = $queueObj->getData($type); //by default not blocking, will return object with type === null on empty