efrane / conditional-process
条件运行进程。这是 symfony/process 的包装器。
v1.1.2
2017-02-26 12:32 UTC
Requires
- symfony/process: >=2.7
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2024-09-06 23:36:24 UTC
README
条件进程
条件运行进程。
安装
此包在 composer 上可用。您可以使用 composer require efrane/conditional-process
安装它。
用法
$process = new ConditionalProcess('cat README.md', new FileExists('README.md')); $process->execute($readmeText); // $readmeText will contain the contents of README.md if that file exists
许可证
此包可在 MIT 许可证条款下使用。