PHP code example of sergiors / pheanstalk-service-provider

1. Go to this page and download the library: Download sergiors/pheanstalk-service-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/ */

    

sergiors / pheanstalk-service-provider example snippets


use Sergiors\Silex\PheanstalkServiceProvider;

$app->register(new PheanstalkServiceProvider(), [
    'pheanstalk.options' => [
        'server' => '',
        'port' => ''
    ]
]);

$app['pheanstalk']
    ->useTube('test')
    ->put(json_encode([
        'name' => 'Kirk'
    ]));