To see the complete documentation, check out LeezyPheanstalkBundle
composer require sergiors/pheanstalk-service-provider "dev-master"
use Sergiors\Silex\PheanstalkServiceProvider;
$app->register(new PheanstalkServiceProvider(), [
'pheanstalk.options' => [
'server' => '',
'port' => ''
]
]);
$app['pheanstalk']
->useTube('test')
->put(json_encode([
'name' => 'Kirk'
]));
If you install Console Service Provider, you can enjoy more features.
MIT