PHP code example of coderkungfu / php-queue
1. Go to this page and download the library: Download coderkungfu/php-queue 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/ */
coderkungfu / php-queue example snippets
eue\Base::$queue_path = __DIR__ . '/queues/';
PHPQueue\Base::$worker_path = __DIR__ . '/workers/';
eue\Base::$queue_namespace = '\MyFabulousApp\Queues';
PHPQueue\Base::$worker_namespace = '\MyFabulousApp\Workers';
php composer.phar install
$ php cli.php <QueueName> add --data '{"boo":"bar","foo":"car"}'
$ php cli.php <QueueName> work