gianarb/psysh-module
最新稳定版本:0.0.1
Composer 安装命令:
composer require gianarb/psysh-module
包简介
Zend Framework 2 psysh integration
README 文档
README
Integration between psysh and ZF2 The best way to debug your cli command!
Psysh
PsySH is a runtime developer console, interactive debugger and REPL for PHP. Learn more at psysh.org. Check out the Interactive Debugging in PHP talk from OSCON on Presentate.
Installation
composer require gianarb/psysh-module
Example
Your application return a cli command zf-endpoint user list, How can I debug it?
In the first step you can set a breakpoint into command action. To build it you can use the psyshservice from your service locator
<?php eval($this->getServiceLocator()->get("psysh")->breakpoint());
Run this command
vendor/bin/zf2-psysh user list
Now you can type in
ls
This command show all variable into the scope
统计信息
- 总下载量: 3.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-09