installation.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Installing/Configuring
  2. ======================
  3. Tags
  4. ~~~~
  5. - Use last unstable version ( alias of ``dev-master`` ) to stay always
  6. in last commit
  7. - Use last stable version tag to stay in a stable release.
  8. - |LatestUnstableVersion| |LatestStableVersion|
  9. .. note:: As long as Symfony2 versions 2.1 and 2.2 are not maintained anymore,
  10. and as long as these branches had same code than master branch, they
  11. all have been deleted
  12. Installing `Gearman`_
  13. ~~~~~~~~~~~~~~~~~~~~~
  14. To install Gearman Job Server with ``apt-get`` use the following
  15. commands:
  16. .. code-block:: bash
  17. $ sudo apt-get install gearman-job-server
  18. And start server
  19. .. code-block:: bash
  20. $ service gearman-job-server start
  21. Then you need to install **Gearman driver** using the following commands
  22. .. code-block:: bash
  23. $ pecl install channel://pecl.php.net/gearman-X.X.X
  24. You will find all available gearman versions in `Pear Repository`_
  25. Finally you need to start php module
  26. .. code-block:: bash
  27. $ echo "extension=gearman.so" > /etc/php5/conf.d/gearman.ini
  28. Installing `GearmanBundle`_
  29. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. You have to add require line into you composer.json file
  31. .. code-block:: yml
  32. "require": {
  33. "php": ">=5.3.3",
  34. "symfony/symfony": "2.4.*",
  35. "mmoreram/gearman-bundle": "dev-master"
  36. }
  37. Then you have to use composer to update your project dependencies
  38. .. code-block:: bash
  39. $ curl -sS https://getcomposer.org/installer | php
  40. $ php composer.phar update
  41. And register the bundle in your appkernel.php file
  42. .. code-block:: php
  43. return array(
  44. // ...
  45. new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
  46. new Mmoreram\GearmanBundle\GearmanBundle(),
  47. // ...
  48. );
  49. .. _Gearman: http://gearman.org
  50. .. _Pear Repository: http://pecl.php.net/package/gearman
  51. .. _GearmanBundle: https://github.com/mmoreram/GearmanBundle
  52. .. |LatestUnstableVersion| image:: https://poser.pugx.org/mmoreram/gearman-bundle/v/unstable.png
  53. :target: https://packagist.org/packages/mmoreram/gearman-bundle
  54. .. |LatestStableVersion| image:: https://poser.pugx.org/mmoreram/gearman-bundle/v/stable.png
  55. :target: https://packagist.org/packages/mmoreram/gearman-bundle