1. Go to this page and download the library: Download workbunny/webman-rqueue 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/ */
workbunny / webman-rqueue example snippets
/*
* Builder 启动时
*
* @param Worker $worker
* @return void
*/
abstract public function onWorkerStart(Worker $worker): void;
/**
* Builder 停止时
*
* @param Worker $worker
* @return void
*/
abstract public function onWorkerStop(Worker $worker): void;
/**
* Builder 重加载时
*
* @param Worker $worker
* @return void
*/
abstract public function onWorkerReload(Worker $worker): void;