johnsn / pheanstalk-service-provider
A Pheanstalk service provider for Silex
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/johnsn/pheanstalk-service-provider
Requires
- pda/pheanstalk: ~3.0
- silex/silex: ~2.0
This package is not auto-updated.
Last update: 2025-10-11 21:38:12 UTC
README
Simple service provider for pheanstalk, hope you enjoy.
Usage
<?php use Silex\Application; use PheanstalkServiceProvider\PheanstalkServiceProvider; $app = new Application(); $app->register(new PheanstalkServiceProvider(), [ 'pheanstalk.hostname' => 'localhost', 'pheanstalk.port' => 11300, 'pheanstalk.timeout' => null, ]); $app->run();
Or if you don't want to use this package at all...
<?php use Silex\Application; use Pheanstalk\Pheanstalk; $app = new Application(); $app['pheanstalk'] = function() { return new Pheanstalk('localhost', 11300, null); }; $app->run();
License
PheanstalkServiceProvider is licensed under the new bsd license, see LICENSE.md.