PHP code example of xutl / laravel-qcloud-cmq-queue
1. Go to this page and download the library: Download xutl/laravel-qcloud-cmq-queue 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/ */
xutl / laravel-qcloud-cmq-queue example snippets
// config/app.php
'providers' => [
'...',
XuTL\QCloud\Cmq\Queue\CMQServiceProvider::class,
];
'cmq' => [
'driver' => 'cmq',
'secret_Id' => env('CMQ_SECRET_ID', 'your-secret_Id'),
'secret_Key' => env('CMQ_SECRET_KEY', 'your-secret_Key'),
'endpoint' => 'https://cmq-queue-bj.api.qcloud.com',
'queue' => 'default'
],
'default' => 'cmq'