PHP talk to command line programs

The goal here is not to run PHP programs from the command line, but to talk to programs available on the command line, like at srv/local/bin, through your (web-based) PHP software.

Talk to the other server directly from PHP: Not installed by default.

https://www.php.net/manual/en/function.ssh2-exec.php

On your server:

https://www.php.net/exec

Making it much nicer:

https://github.com/mikehaertl/php-shellcommand