PHP code example of varspool / disque-admin-provider

1. Go to this page and download the library: Download varspool/disque-admin-provider 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/ */

    

varspool / disque-admin-provider example snippets


    $app->register(new \Varspool\DisqueAdmin\DisqueAdminProvider(), [
        // A prefix at which the admin routes will be mounted
        'disque_admin.mount_prefix' => '/_disque',
    ]);
   

$app->extend('disque_admin.credentials', function (Application $app) {
   return [
       new Credentials(
           '127.0.0.1,
           7711,
           $app['disque_admin.password'],
           $app['disque_admin.connect_timeout'],
           $app['disque_admin.timeout']
       ),
       new Credentials(
           '10.1.1.1',
           7712,
           $app['disque_admin.password'],
           $app['disque_admin.connect_timeout'],
           $app['disque_admin.timeout']
       ),
   ];
});