PHP code example of dexamped / kohana-resque

1. Go to this page and download the library: Download dexamped/kohana-resque 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/ */

    

dexamped / kohana-resque example snippets


class Task_Test extends Task_Resque {

	protected $_queue = 'myqueuename';

	public function perform()
	{
		echo "Executing a task!\n";
	}

} // End Task_Test

composer install --working-dir=modules/kohana-resque/vendor/php-resque

Kohana::modules(array(
    ...
    'resque' => 'modules/kohana-resque',
    ...
));