dev-master
9999999-devZend Framework 2 psysh integration
MIT
The Requires
The Development Requires
0.0.1
0.0.1.0Zend Framework 2 psysh integration
MIT
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Zend Framework 2 psysh integration
Integration between psysh and ZF2 The best way to debug your cli command!, (*2)
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., (*3)
composer require gianarb/psysh-module
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, (*4)
<?php
eval($this->getServiceLocator()->get("psysh")->breakpoint());
Run this command, (*5)
vendor/bin/zf2-psysh user list
Now you can type in, (*6)
ls
This command show all variable into the scope, (*7)
Zend Framework 2 psysh integration
MIT
Zend Framework 2 psysh integration
MIT