apinstein / shell-command
A generic wrapper for execution of shell command to make it easy to horizontally scale such work.
Installs: 28 027
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 2
Open Issues: 4
Requires
- php: >=5.2.0
- aws/aws-sdk-php: 3.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-14 13:17:45 UTC
README
A generic wrapper for execution of shell command to make it easy to horizontally scale such work.
Security Notice
This code is not expected to accept arbitrary user input. If you create a ShellCommand without using escapeshellarg() and escapeshellcmd() then you are using this insecurely.
The reason we don't do this in ShellCommand is that escapeshellcmd() neuters pipes and redirection, and escapeshellarg() requires parsing which would introduce its own security risks.
Therefore we just punt on security and tell you to sanitize your inputs before creating a ShellCommand.