PHP code example of ronanchilvers / silex-queue-beanstalkd

1. Go to this page and download the library: Download ronanchilvers/silex-queue-beanstalkd 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/ */

    

ronanchilvers / silex-queue-beanstalkd example snippets


$app->register(new Ronanchilvers\Silex\Queue\QueueProvider());

$app->register(new Ronanchilvers\Silex\Queue\QueueProvider(), [
    'queue.options' => [
        'host' => '1.2.3.4'
    ]
]);

 $console->add(new Ronanchilvers\Silex\Queue\Console\Command\ConsumeCommand());