Skip to content

Instantly share code, notes, and snippets.

@richardjortega
Created March 18, 2014 16:33
Show Gist options
  • Save richardjortega/9623818 to your computer and use it in GitHub Desktop.
Save richardjortega/9623818 to your computer and use it in GitHub Desktop.
PsySH Install

Install:

$ brew update && brew install composer
$ composer global require psy/psysh
# If asked what version constraint to use just type `*`

Update Your PATH for global CLI use:

export PATH=~/.composer/vendor/bin:$PATH

Interactive Shell Use:

$ psysh

Debugger Use:

<?php
require('/Users/richardjortega/.composer/vendor/autoload.php'); 
# updated 'richardjortega' to your user name
# find path with `which psysh`

# some code is happening here
\Psy\Shell::debug(get_defined_vars());
# code stops line before with interactive shell!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment