PHP code example of stolfam / generic-producer-consumer-queue-php
1. Go to this page and download the library: Download stolfam/generic-producer-consumer-queue-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stolfam / generic-producer-consumer-queue-php example snippets
$manager->run();
$manager->putMessage(new \Stolfam\GPCQ\Test\SimpleMessage($id));
$manager->putMessage(new \Stolfam\GPCQ\Test\JsonMessage(json_encode([
"data" => $data
])));