1. Go to this page and download the library: Download 4erk/yii2-queue-message 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/ */
4erk / yii2-queue-message example snippets
'components' => [
'messages' => [
'class' => \yii\queue_message\QueueMessageFile::class
'mutex' => \yii\mutex\FileMutex::class, // mutex driver
//'path' => '@runtime/queue-message' // path for files
//'ttr' => 30 // default time in seconds for read message from queue
//'delay' => 0 // default delay time before read message from queue
//'priority' => 1024 // default priority of message in queue
]
]