sergiors/pheanstalk-service-provider

Pheanstalk for Silex

1.0.0 2016-08-04 03:44 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:03:19 UTC


README

Build Status

To see the complete documentation, check out LeezyPheanstalkBundle

Install

composer require sergiors/pheanstalk-service-provider "dev-master"

How to use

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.

License

MIT