Installing/Configuring

Tags

  • Use last unstable version ( alias of dev-master ) to stay always in last commit
  • Use last stable version tag to stay in a stable release.
  • LatestUnstableVersion LatestStableVersion

Note

As long as Symfony2 versions 2.1 and 2.2 are not maintained anymore, and as long as these branches had same code than master branch, they all have been deleted

Installing Gearman

To install Gearman Job Server with apt-get use the following commands:

$ sudo apt-get install gearman-job-server

And start server

$ service gearman-job-server start

Then you need to install Gearman driver using the following commands

$ pecl install channel://pecl.php.net/gearman-X.X.X

You will find all available gearman versions in Pear Repository Finally you need to start php module

$ echo "extension=gearman.so" > /etc/php5/conf.d/gearman.ini

Installing GearmanBundle

You have to add require line into you composer.json file

"require": {
   "php": ">=5.3.3",
   "symfony/symfony": "2.3.*",

   "mmoreram/gearman-bundle": "dev-master"
}

Then you have to use composer to update your project dependencies

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar update

And register the bundle in your appkernel.php file

return array(
   // ...
   new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
   new Mmoreram\GearmanBundle\GearmanBundle(),
   // ...
);