1. Go to this page and download the library: Download slm/queue-beanstalkd 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/ */
use SlmQueue\Job\AbstractJob;
use SlmQueueBeanstalkd\Job\Exception;
class SimpleJob extends AbstractJob
{
public function execute()
{
// Bury the job, with a priority of 10
throw new Exception\BuryableException(array('priority' => 10));
// Release the job, with a priority of 10 and delay of 5 seconds
throw new Exception\ReleasableException(array('priority' => 10, 'delay' => 5));
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.