A lightweight PHP process manager

A simple, lightweight PHP package that handles your worker processes without needing to run them manually. Nyx handles your worker processes for you by making sure they stay alive, even when you are asleep.

Easy to install

Simply download the phar from https://github.com/steadweb/nyx/raw/master/nyx.phar. You'll need a nyx.json configuration file in order to run php nyx.phar run.

Simple configuration

Nyx uses JSON for configuration. It's easy, and allows you to manage the number of workers required for each pool. Example config below showing the bare minimum required.

{
  "workers": [
    {
      "count": "1",
      "path": "ping 8.8.8.8",
      "options": {
        "in": {
          "type": "pipe",
          "command": "r"
        },
        "out": {
          "type": "file",
          "command": "/tmp/google-ping.log",
          "options": "a"
        },
        "err": {
          "type": "file",
          "command": "/tmp/google-ping-error.log",
          "options": "a"
        }
      }
    },
    {
      "count": "1",
      "path": "ping 8.8.4.4"
    },
    {
      "path": "echo 'Random number:' $RANDOM"
    }
  ]
}

Contributing

Submit a ticket via https://github.com/steadweb/nyx if you find a bug or would like to see a feature implemented.

Authors and Contributors

Luke Steadman (@steadweb)