efrane/conditional-process

条件运行进程。这是 symfony/process 的包装器。

资助包维护!
eFrane

安装: 483

依赖: 1

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:

v1.1.2 2017-02-26 12:32 UTC

This package is auto-updated.

Last update: 2024-09-06 23:36:24 UTC


README

Build Status

条件进程

条件运行进程。

安装

此包在 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 许可证条款下使用。