n-coded/php-safe-exec
最新稳定版本:v0.1.0
Composer 安装命令:
composer require n-coded/php-safe-exec
包简介
Run system command safely
README 文档
README
Generate and run shell command safely by escaping option value and argument
Usage:
$command = new SafeExec('unoconv');
$command->addOption('-f', 'pdf');
$command->addOption('-o', 'test.pdf');
$command->addArgument('test.docx');
$command->stdoutToNull();
$command->shell_exec();
or use chaining:
$command = (new SafeExec('unoconv'))->addOption('-f', 'pdf')->addOption('-o', 'test.pdf')->addArgument('test.docx')->stderrToStdout();
$command->exec($output, $return_var);
Donation
Thank you for using and donation http://goo.gl/xdEcN6
统计信息
- 总下载量: 9.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-28