Download the PHP package nayjest/symfony-worker-control without Composer

On this page you can find all versions of the php package nayjest/symfony-worker-control. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-worker-control

PHP Worker Control

Console command for maintaining worker processes.

Symfony Worker Control may be used as standalone script or included as lib to existing project.

Dependencies

Installation

Installation as lib to existing project:

composer require nayjest/symfony-worker-control

Installation as standalone script:

git clone https://github.com/Nayjest/symfony-worker-control.git && cd symfony-worker-control && composer install && chmod +x workers

Testing

Code-style (PSR2):

1) Install code sniffer:

2) Run code-style tests from symfony-worker-control folder

composer cs

Worker for tests:

tests/example-worker.php

Usage

workers [--qty QTY] [-o|--output OUTPUT] [-e|--errors ERRORS] [--] <action> <cmd>

Command may be executed directly (./workers ...) or as argument of php command (php workers ...).

See ./workers --help for help.

Actions

start -- start QTY processes

restart -- stop all processes and then start QTY processes

stop -- stop all processes

maintain -- start QTY - N processes, where N — quantity of currently running processes.

count -- print count of running processes

list -- print information about running processes

Options

--qty=\<value> — specifies quantity of processes to start/restart/maintain If value isn't specified, DEFAULT_WORKER_QTY environment variable will be used. if DEFAULT_WORKER_QTY isn't defined, qty = 1

--output=\<value> -o \<value> output file for workers (STDOUT + STDERR if --errors not specified), following placeholder: {i} will be replaced to process number. Default value: /dev/null

--errors=\<value> -e \<value> output file for workers (STDERR), following placeholder: {i} will be replaced to process number.

--quiet -q Do not output any message

Help: ./workers --help

Examples:

./workers start --qty=2 "php my_process.php"

./workers restart --qty=3 "my_process.php"

php workers maintain --qty=4 "php my_process.php"

php workers stop "php my_process.php"

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

© 2017—2018 Vitalii Stepanenko

Licensed under the MIT License.

Please see License File for more information.


All versions of symfony-worker-control with dependencies

PHP Build Version
Package Version
Requires symfony/console Version >=3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nayjest/symfony-worker-control contains the following files

Loading the files please wait ....