die()ing all the time
debugger statement, saving you
die() iterations. Just drop this line in where you'd like to
have a breakpoint:
PsySH has tab completion for variable names, functions, classes, methods, properties, and even files!
Just start typing, then hit
[tab]. But you probably already guessed that.
(Tab completion requires Readline- or Libedit-enabled PHP. But you really should have that anyway)
Most PHP shells are terrible at namespaces. PsySH does just what you'd expect.
Have a question about a core PHP function? Try
Want to read the documentation for an object property? Run
>>> help doc
list command knows all about your code — and everyone else's. Easily list and search
all variables, constants, classes, interfaces, traits, functions, methods and properties.
>>> help list
Easily show the source code for any userland object, class, interface, trait, constant, method or property.
>>> help show
No worries, PsySH has your back. We caught it for you, and made it available via the
>>> help wtf
Show, search, save and replay your shell history.
>>> help history
If the awesome features listed above aren't enough for you, you can write your own commands! PsySH has first-class
support for custom commands — just register them in your
Check out the slides from Interactive Debugging in PHP at OSCON 2013 for an overview of the state of PHP debugging and why PsySH might be for you.
PsySH is the `rails c` of PHP and it's becoming one of my must-have PHP tools ♥https://t.co/bJxBvas28H— Jay El-Kaake (@jayelkaake) March 3, 2016
Acabo de usar psysh para testear una regex... Tener una "repl" decente en php va bien y todo xD— Rafa Gómez (@rafaoe) January 26, 2016
Just discovered PsySH and I wish I had done so before - this will be saving me an awful lot of grief— Matthew Daly (@mattbd) November 13, 2015
PsySH http://t.co/GW8CWJadKs 这个console插件不错，可以像 irb 那样使用 PHP，再也不用为了写几行 PHP 而新建一个.php 文件了— 徐羿君 (@jun_cn) July 15, 2015
Oh awesome! How did I not know about this before! http://t.co/htmDUxbKOZ— Jack Skinner'; -- (@developerjack) June 6, 2015
PsySH http://t.co/whEx9lUkFO Now why didn't anyone tell me about this sooner?— Dan Revel (@nopolabs) May 25, 2015
I know this is baked into Laravel 5, but it's seriously awesome on its own: http://t.co/76Yjqt4rZz— Chris (@ninthspace) April 9, 2015
psysh - The best REPL (runtime developer console, interactive debugger) for PHP. http://t.co/FQ1FIO9eJA— Logan Lindquist (@llbbl) March 3, 2015
If you write PHP, give http://t.co/1BfPleItau a go. It's awesome. "A runtime developer console, interactive debugger and REPL for PHP."— Dave Hulbert (@dave1010) February 2, 2015
Just installed Psysh. This thing is AMAZING. PHP devs should definitely check it out— Ali Smith (@40_thieves) February 1, 2015
Awesome! Laravel 5 now using psysh on the console! pic.twitter.com/4kvDb4eUEt— Joe Cohen (@joecohens) January 27, 2015
psyshべんり。— takscape (@takscape) November 29, 2014
Interactive PHP Debugging with PsySH : http://t.co/giIG3pmZfQ— SitePoint (@sitepointdotcom) September 29, 2014
PSA: if you’re a php dev you should be using psysh (http://t.co/PCb6QZv0r0)— Ciaran Downey (@ciarandowney) July 15, 2014
@pockystar j'approuve. Et psysh aussi. C'est le meilleur REPL php— Florent Viel (@florent_viel) July 15, 2014
How could I live without a wtf command ? http://t.co/cpXbe7g1y7— Antoine Guigan (@AntoineGuigan) January 29, 2014
PsySH: Finally, a good REPL / developer console for PHP? http://t.co/2bZnSjBkca Inline doc, debugger... I'm only missing tab completion— François Zaninotto (@francoisz) January 23, 2014