(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)
- Lavary/Crunzy
- Gearman-Manager
- Illuminate/Database
- Jenssegers/Mongodb (Moloquent)
- Illuminate/Config
- Vlucas/PHPDotEnv
- Symfony/Finder
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
For production usage do not install dev dependencies
composer install --no-dev
For Development deployment simple composer install
will install all development dependency.
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.
- 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.