【文件属性】:
文件名称:shell-exec:使用PHP组装命令并在Shell中执行更容易
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-12 04:37:39
shell php command-line execute PHP
壳执行
使用PHP组装命令并在Shell中执行更容易
安装
通过作曲家。
composer require technodelight/shell-exec
用法
<?php
use Technodelight \ ShellExec \ Command ;
use Technodelight \ ShellExec \ Exec ;
$ shell = new Exec ( 'which' );
$ output = $ shell -> exec (
Command :: create ()
-> withArgument ( 'php' )
-> withStdErrToStdOut ()
-> withStdOutTo ( '/dev/null' ) // command will be assembled as 'whi
【文件预览】:
shell-exec-master
----.gitignore(36B)
----src()
--------Shell.php(212B)
--------Command.php(3KB)
--------ShellCommandException.php(1KB)
--------TestShell.php(749B)
--------Exec.php(737B)
--------Passthru.php(721B)
----behat.yml(82B)
----LICENSE(1KB)
----composer.json(629B)
----spec()
--------Technodelight()
----README.md(2KB)
----features()
--------bootstrap()
--------it-runs.feature(264B)