PHP code example of ancoka / yii2-queues

1. Go to this page and download the library: Download ancoka/yii2-queues 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/ */

    

ancoka / yii2-queues example snippets


php composer.phar 

	
	$data = array(
			'name' => 'yii-queues'
		);
	
	# Real-time execution
	Yii::$app->resque->put('default', $data);
	
	# Delayed execution
	Yii::$app->resque->putIn('default', $data, 10);
	
	# Timing execution
	Yii::$app->resque->putAt('default', $data, 1486620571);

	

	$ QUEUE=file_serve php bin/resque