| CARVIEW |
PsySH
A runtime developer console, interactive debugger and REPL for PHP.
Have eight seconds? Try PsySH
The easy way
The other easy way
Stop die()ing all the time
PsySH can be used as an interactive debugger, much like JavaScript's debugger statement, saving you
from endless var_dump() and die() iterations. Just drop this line in where you'd like to
have a breakpoint:
eval(\Psy\sh());
Auto[tab][tab]Complete
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)
Name all the spaces
Most PHP shells are terrible at namespaces. PsySH does just what you'd expect.
Read documentation in context
Have a question about a core PHP function? Try doc array_map.
Want to read the documentation for an object property? Run doc $response->statusTexts.
>>> help doc
Reflect like a boss
The ls 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 ls
Use the source!
Easily show the source code for any userland object, class, interface, trait, constant, method or property.
>>> help show
Forget to catch that last exception?
No worries, PsySH has your back. We caught it for you, and made it available via the wtf command.
>>> help wtf
Learn from your history and repeat your past
Show, search, save and replay your shell history.
>>> help history
Roll your own commands
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 ~/.config/psysh/config.php.
How is this thing better than
$shell_ive_used_since_2008?
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 manual
💾 Installation
🖥 Usage
- ⌨️ Command line options
- ✨ Magic variables
- ⏳ Managing history
- 🔄 Code reloading
- 💲 System shell integration
- 🎥 Tutorials & guides
- 🐛 Troubleshooting
📢 Commands
🛠 Configuration
🔌 Integrations
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
Probably the best discovery of the day: https://t.co/u2jeb1oJ4F, an awesome #php REPL !
— Morgan TQ (@toverux) February 11, 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
how did I develop in PHP without #psysh?! best tool I came across in ages, debugging will never be the same again https://t.co/hWAxwfYnrK
— Tito Miguel Costa (@titomiguelcosta) November 16, 2015
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 https://t.co/GW8CWJadKs
这个console插件不错,可以像 irb 那样使用 PHP,再也不用为了写几行 PHP 而新建一个.php 文件了
— 徐羿君 (@jun_cn) July 15, 2015
Psysh https://t.co/L1yZB0HTfh is so good that I'm kinda upset nobody told me enough about it before today #php #repl #interactive #debugging
— Daniele Alessandri (@JoL1hAHN) July 13, 2015
Oh awesome! How did I not know about this before!
https://t.co/htmDUxbKOZ
— Jack Skinner'; -- (@developerjack) June 6, 2015
PsySH https://t.co/whEx9lUkFO Now why didn't anyone tell me about this sooner?
— Dan Revel (@nopolabs) May 25, 2015
Late to the game but I just massively/instantly got into #psysh https://t.co/ZILQNwF1sG @bobthecow 👍
— Mike Whiting (@mikejw) May 22, 2015
Interactive debuger for PHP https://t.co/PqQHEawJFH #joy
— Grégoire Hubert (@chanmix51) April 30, 2015
Even as Boris contrib, going to step back and say PsySH is my new favorite #PHP console/debugger/REPL. Just switched, nice work @bobthecow!
— Tejas Manohar (@tejasmanohar) April 29, 2015
I know this is baked into Laravel 5, but it's seriously awesome on its own: https://t.co/76Yjqt4rZz
— Chris (@ninthspace) April 9, 2015
#PsySH where have you been all my (developer) life! check out this PHP REPL at https://t.co/pDLdWuR9cK
— YourWebDevGuy (@YourWebDevGuy) March 17, 2015
psysh - The best REPL (runtime developer console, interactive debugger) for PHP. https://t.co/FQ1FIO9eJA
— Logan Lindquist (@llbbl) March 3, 2015
Found a great REPL for php because it's the replacement for boris in @laravelphp Thanks guys! #laravel5
https://t.co/jBqbFRCGze
— christianthomas (@christianthomas) February 10, 2015
adote nosso amigo PsySH tb! #psysh https://t.co/3eHyCSTQUX
— Raffael Tancman (@rtancman) February 10, 2015
If you write PHP, give https://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
#PsySH THE most awesome #php #repl and debug console https://t.co/hIy0wLNnDw
— #!/bin/flatline (@___flatline___) January 30, 2015
PHP has never been more fun before! PsySH rocks!
https://t.co/KisQB0q2IM
#php pic.twitter.com/cvgA6OMpbZ
— Abu Ashraf Masnun (@masnun) January 28, 2015
#PHP gone #REPL! https://t.co/k8Ummg6dwc
— Abhinandan (@nmabhinandan) January 28, 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
Una consola interactiva y debugger para #PHP https://t.co/5zItzSZMG8 #WebBizarro pic.twitter.com/lYHEgsMSkR
— Web Bizarro (@BizarroWeb) November 7, 2014
AND THE HEAVENS OPENED: https://t.co/VrQjD0ffax
— Gemma Lynn (@ellotheth) October 31, 2014
Interactive PHP Debugging with PsySH : https://t.co/giIG3pmZfQ
— SitePoint (@sitepointdotcom) September 29, 2014
My favorite PHP interactive console (REPL) is https://t.co/CdcUCrVtdk by @bobthecow Really cool project with awesome website!
— davert (@davert) September 27, 2014
#ezsh: Interactive debug shell for #ezpublish available now for testing! https://t.co/305WYAhOf3 On top of #PsySH by @bobthecow #symfony
— Jérôme Vieilledent (@jvieilledent) August 28, 2014
Just discovering #PsySH, a #PHP #REPL (and more). Thank you @bobthecow.
— Thierry Goettelmann (@byscripts) August 2, 2014
PSA: if you’re a php dev you should be using psysh (https://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
使いやすいPHPのREPL https://t.co/BtG32FroBv
— ryo hongo (@rhong_) July 8, 2014
めっちゃ便利なPHPのREPL PsySH https://t.co/O0GZoP6yfP
— numa (@numa08) May 7, 2014
Ohai psysh (https://t.co/OZMFOOaYEz), time to get you on this machine. #php #repl
— Raphael Stolt (@raphaelstolt) April 15, 2014
New Blog Post: Working with Psysh, an amazing PHP REPL https://t.co/x7NT91ndu8 @phpsblog #PHP
— Allan MacGregor (@allanmacgregor) April 13, 2014
@gonzaloserrano @ricardclau @theUniC @javiereguiluz psysh viene genial para debugar modelo dominio y comandos
— jhvaras (@jhvaras) April 7, 2014
なにこれ凄い / “PHP - 高機能REPL psysh - Qiita” https://t.co/mVxxo5DwTg
— Hiraku (@Hiraku) February 21, 2014
Finally a decent PHP REPL.
PsySH ~ https://t.co/HKddZIF37b
By @bobthecow
— Marnu Lombard (@mr_springtime) February 4, 2014
How could I live without a wtf command ? https://t.co/cpXbe7g1y7
— Antoine Guigan (@AntoineGuigan) January 29, 2014
Love this project #psysh https://t.co/uNxdL4GoAc
— Clint Tyler (@cdtweb) January 28, 2014
PsySH, debugging in #php just got serious https://t.co/98KMjU01RS
— Alessandro Nadalin (@_odino_) January 27, 2014
PsySH: Finally, a good REPL / developer console for PHP? https://t.co/2bZnSjBkca Inline doc, debugger... I'm only missing tab completion
— François Zaninotto (@francoisz) January 23, 2014
Just found @bobthecow's 2013 OSCON presentation on interactive PHP debugging with PsySH: https://t.co/Y1RPTP1FSl. It's my go-to PHP REPL.
— Jeremy Mikola (@jmikola) January 21, 2014
https://t.co/ug4NPPllQK thank you @bobthecow!
— everzet (@everzet) January 21, 2014
Great presentation by @bobthecow and a new #php tool (PsySH) that I need to try. https://t.co/UYDLpKXanW
— Jeremy Lindblom (@jeremeamia) January 23, 2014
https://t.co/DWJ8P48TYj is the #php REPL shell we have been waiting for. How to start an interactive shell with a… https://t.co/R98sEdi6uO
— Barnaby Walters (@BarnabyWalters) November 18, 2013
Interactive debugging for PHP, https://t.co/PKwjvy2X1x, because we can do better than var_dump($data); #REPL
— Adrian Kuhn (@akuhn) September 11, 2013
I’m now 30% more sane, thanks to Psy Shell. #php https://t.co/uGKWGoEyps /cc @bobthecow
— Graham Weldon (@predominant) September 10, 2013
If you haven't already tried it, @bobthecow 's PsySH is pretty freaking awesome.
https://t.co/8K8Oyii1dP
— John David Anderson (@raisinbread) September 2, 2013
Awesome interactive PHP REPL /cc: @jamiehannaford https://t.co/o6ZxJCJpkq
— Glen Campbell (@glenc) August 29, 2013
I definitely need to look at https://t.co/lS4jgFtcES, 'cause "Even IE has a better interactive shell than php." - @bobthecow #phpundiscovered
— Michael Crumm (@mcrumm) August 29, 2013
PsySH: Proper REPL for PHP! https://t.co/ZZpgMCHDal #OSCON
— Jeff Tilson (@jrtilson) July 25, 2013
Favorite #OSCON presentation so far is @bobthecow on PHP interactive debugging. Check out the REPL loop he built at https://t.co/tjyAERfRHA
— Scott Small (@smallsco) July 25, 2013