2017 © Pedro Peláez
 

library psysh-module

Zend Framework 2 psysh integration

image

gianarb/psysh-module

Zend Framework 2 psysh integration

  • Tuesday, March 10, 2015
  • by GianArb
  • Repository
  • 0 Watchers
  • 3 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

PsyshModule

Build Status Dependency Status Code Climate, (*1)

Integration between psysh and ZF2 The best way to debug your cli command!, (*2)

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., (*3)

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, (*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)

The Versions

10/03 2015

dev-master

9999999-dev

Zend Framework 2 psysh integration

  Sources   Download

MIT

The Requires

 

The Development Requires

10/03 2015

0.0.1

0.0.1.0

Zend Framework 2 psysh integration

  Sources   Download

MIT

The Requires

 

The Development Requires