官网网址
Github地址
装置
-
应用wget装置
<code class="shell">$ wget https://git.io/psysh $ chmod +x psysh $ ./psysh
-
应用composer装置
<code class="shell"> $ composer g require psy/psysh:@stable $ psysh
Command
wtf 打印最近的谬误提醒
history 显示执行命令
clear 革除命令
doc 显示函数应用文档
dump 打印变量
ls 显示变量
show 显示函数 常量 类 办法
doc命令应用的时候须要安装文件到本地
PsySH的文档寄存在~/.local/share/psysh/
。(windows零碎寄存在C:\Users\{用户名}\AppData\Roaming\PsySH\
)
<code class="shell">$ cd ~/.local/share $ mkdir psysh $ cd psydh $ wget http://psysh.org/manual/zh/php_manual.sqlite
Configuration
Osx ~/.config/psysh/config.php
(or C:\Users\{USER}\AppData\Roaming\PsySH\config.php
on Windows).
<code class="php"><?php return [ 'commands' => [ new \Psy\Command\ParseCommand, ], 'defaultIncludes' => [ __DIR__ . '/include/bootstrap.php', //这里能够加载本人平时罕用的类库 ], 'startupMessage' => sprintf('<info>%s</info>', shell_exec('uptime')), ];
<img src=’https://gitee.com/smallsha/upic/raw/master/uPic/下载 (2).png’ alt=’下载(2)’ style=”zoom:50%;” />