Skip to content

A deployment for writing services that uses gearman-manager, lavary/crunzy, and supervisor to manage processes

Notifications You must be signed in to change notification settings

sarthaksahni/php-services

Repository files navigation

php-services

(Under Development)

For deployment of background services with PHP. This package enables you to run distributed background process with PHP. Distributed task processing is achieved using Gearman and Gearman-Manager and scheduling is manged by Lavary/Crunzy package. Minimalistic approach for using services with MySQL and MongoDB. (Largely Inspired by Laravel)

Uses

Installation Notes

Install composer for dependency resolution. For detailed documentation on installing composer visit getcomposer.org

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=bin --filename=composer

Ensure you have composer in path by typing composer in CLI and getting output.

Clone this repository in a directory and install dependencies.

git clone https://github.com/sarthaksahni/php-services
cd ./php-services

Installing dependencies:

For production usage do not install dev dependencies

composer install --no-dev

For Development deployment simple composer install will install all development dependency.

Adding Gearman Config and .env

Copy gearman.ini.sample to gearman.ini. Look for configuration of Gearman-Manager for more details.

Copy .env.sample to .env and modify it as per need.

TODO:
  • Add documentation for workers
  • Add documentation for scheduled tasks
  • Add documentation for supervisor documentation and deployment

Reach my email: sarthaksahni@gmail.com for any help regarding this.

About

A deployment for writing services that uses gearman-manager, lavary/crunzy, and supervisor to manage processes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published