Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 71 | All time: 10,270 This week: 57![]() |
Version | License | PHP version | Categories | |||
mesq 1.0.0 | GNU Lesser Genera... | 7 | Tools, Files and Folders, PHP 7 |
Description | Author | |||
This package can queue and pull messages store in directory files. Innovation Award
|
|
[comment]: # (This file is part of MesQ, PHP disk based message lite queue manager. Copyright 2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved, licence LGPLv3)
MesQ is a PHP lite disk based message queue manager
MesQ supports FIFO, LIFO and PRIOrity message queues
Message can be any of scalar, array or object types
Requires (below) * unique \<queueName> * existing read-/writeable \<directory>
For the MesQ config keys, please review src/MesQinterface.php.
<?php
namespace Kigkonsult\MesQ;
require 'vendor/autoload.php';
...
$config = [
MesQ::QUEUENAME => <queueName>,
MesQ::DIRECTORY => <directory>,
MesQ::QUEUETYPE => MesQ::FIFO, // default
];
MesQ::qPush( $config, <message> );
...
<?php
namespace Kigkonsult\MesQ;
require 'vendor/autoload.php';
...
$mesQ = MesQ::factory(
[
MesQ::QUEUENAME => <queueName>,
MesQ::DIRECTORY => <directory>
];
);
foreach( <messages> as $message ) {
$mesQ->push( $message );
} // end foreach
...
<?php
namespace Kigkonsult\MesQ;
require 'vendor/autoload.php';
...
$config = [
MesQ::QUEUENAME => <queueName>,
MesQ::DIRECTORY => <directory>,
MesQ::RETURNCHUNKSIZE => 1000
];
$mesQ = MesQ::factory( $config );
if( $mesQ->messageExists() {
while( $message = $mesQ->getMessage()) {
...
// process message, max 1000
...
} // end while
} // end if
...
For more detailed usage, read [MesQ] doc, ReleaseNotes and for test, review test/test.sh.
[Composer], from the Command Line:
composer require kigkonsult/mesq
In your composer.json:
{
"require": {
"kigkonsult/mesq": "dev-master"
}
}
Donation using [paypal.me/kigkonsult] are appreciated. For invoice, [e-mail]</a>.
MesQ is licensed under the LGPLv3 License.
[Composer]:https://getcomposer.org/ [e-mail]:mailto:ical@kigkonsult.se [MesQ]:docs/MesQ.md [paypal.me/kigkonsult]:https://paypal.me/kigkonsult
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Read me | ||
![]() ![]() |
Doc. | 1.05 |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.