psysh.org PsySH

psysh.org
Title: PsySH
Keywords:
Description: PsySH PsySH Installation Features Usage Configuration GitHub PsySH A runtime developer console, interactive debugger and REPL for PHP. Watch on GitHub Fork on GitHub Follow @bobthecow Share on Twitter
psysh.org is ranked 1239420 in the world (amongst the 40 million domains). A low-numbered rank means that this website gets lots of visitors. This site is relatively popular among users in the united states. It gets 50% of its traffic from the united states .This site is estimated to be worth $6,720. This site has a low Pagerank(0/10). It has 1 backlinks. psysh.org has 43% seo score.

psysh.org Information

Website / Domain: psysh.org
Website IP Address: 151.101.40.133
Domain DNS Server: ns4.dnsimple.com,ns3.dnsimple.com,ns1.dnsimple.com,ns2.dnsimple.com

psysh.org Rank

Alexa Rank: 1239420
Google Page Rank: 0/10 (Google Pagerank Has Been Closed)

psysh.org Traffic & Earnings

Purchase/Sale Value: $6,720
Daily Revenue: $18
Monthly Revenue $552
Yearly Revenue: $6,720
Daily Unique Visitors 1,694
Monthly Unique Visitors: 50,820
Yearly Unique Visitors: 618,310

psysh.org WebSite Httpheader

StatusCode 200
Cache-Control max-age=600
Content-Type text/html; charset=utf-8
Date Thu, 04 Aug 2016 00:14:30 GMT
Server GitHub.com

psysh.org Keywords accounting

Keyword Count Percentage

psysh.org Traffic Sources Chart

psysh.org Similar Website

Domain Site Title

psysh.org Alexa Rank History Chart

psysh.org aleax

psysh.org Html To Plain Text

PsySH PsySH Installation Features Usage Configuration GitHub PsySH A runtime developer console, interactive debugger and REPL for PHP. Watch on GitHub Fork on GitHub Follow @bobthecow Share on Twitter Share on Google+ Share on Facebook Have eight seconds? Try PsySH The easy way ~ $ wget https://git.io/psysh ~ $ chmod +x psysh ~ $ ./psysh or The other easy way ~ $ composer g require psy/psysh:@stable ~ $ psysh (Be sure set up your $PATH for Composer) 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 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 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. Usage PsySH as a REPL PsySH functions as a REPL for PHP right out of the box! Once you’ve installed PsySH, running it directly (psysh or ./psysh) will drop you into an interactive prompt, like so: ~ $ ./psysh Psy Shell v0.1.0-dev (PHP 5.4.9-4ubuntu2.2 — cli) by Justin Hileman >>> From here, you can type PHP code and see the result interactively: >>> function timesFive($x) { ... $result = $x * 5; ... return $result; ... } => null >>> timesFive(10); => 50 >>> PsySH as a Debugger To use PsySH as a debugger, install it as a Composer dependency or include the Phar directly in your project: Then, drop this line into your script where you’d like to have a breakpoint: … which is just a shorter way of saying: When your script reaches this point, execution will be suspended and you’ll be dropped into a PsySH shell. Your program state is loaded and available for you to inspect and experiment with. Pro Tip?: You don’t have to use get_defined_vars… You can pass anything you want in as your debugging context: $myApp]); ?> If you’re starting the debug shell from inside a class context, you can pass an optional second argument to add a bound object to the shell. This is super useful because you’ll be able to call things on $this inside your debug shell, and you will have full access to private and protected members of your current context: If you call the shortcut eval(\Psy\sh()) from inside a class context, you’ll get $this bound for free. Magic Variables The result of the last (successful) statement is available as $_, and the last error or exception is available as $_e. You can use these just like you’d use any other variable: >>> 'wat' => "wat" >>> $_ => "wat" >>> throw new Exception($_) Exception with message 'wat' >>> $_e => { message: "wat", file: "phar:///psysh/src/Psy/ExecutionLoop/Loop.php(67) : eval()'d code", line: 1 } >>> Configuration While PsySH strives to detect the right settings automatically, you might want to configure it yourself. Just add a file to ~/.config/psysh/config.php: 'more', // Sets the maximum number of entries the history can contain. // If set to zero, the history size is unlimited. 'historySize' => 0, // If set to true, the history will not keep duplicate entries. // Newest entries override oldest. // This is the equivalent of the HISTCONTROL=erasedups setting in bash. 'eraseDuplicates' => false, // By default, PsySH will use a 'forking' execution loop if pcntl is // installed. This is by far the best way to use it, but you can override // the default by explicitly enabling or disabling this functionality here. 'usePcntl' => false, // PsySH uses readline if you have it installed, because interactive input // is pretty awful without it. But you can explicitly disable it if you hate // yourself or something. 'useReadline' => false, // PsySH automatically inserts semicolons at the end of input if a statement // is missing one. To disable this, set `requireSemicolons` to true. 'requireSemicolons' => true, // PsySH uses a couple of UTF-8 characters in its own output. These can be // disabled, mostly to work around code page issues. Because Windows. // // Note that this does not disable Unicode output in general, it just makes // it so PsySH won't output any itself. 'useUnicode' => false, // While PsySH respects the current `error_reporting` level, and doesn't throw // exceptions for all errors, it does log all errors regardless of level. Set // `errorLoggingLevel` to 0 to prevent logging non-thrown errors. Set it to any // valid `error_reporting` value to log only errors which match that level. 'errorLoggingLevel' => E_ALL & ~E_NOTICE, // "Default includes" will be included once at the beginning of every PsySH // session. This is a good place to add autoloaders for your favorite // libraries. 'defaultIncludes' => array( __DIR__ . '/include/bootstrap.php', ), // While PsySH ships with a bunch of great commands, it's possible to add // your own for even more awesome. Any Psy command added here will be // available in your Psy shell sessions. 'commands' => array( // The `parse` command is a command used in the development of PsySH. // Given a string of PHP code, it pretty-prints the // [PHP Parser](https://github.com/nikic/PHP-Parser) parse tree. It // prolly won't be super useful for most of you, but it's there if you // want to play :) new \Psy\Command\ParseCommand, ), // PsySH uses symfony/var-dumper's casters for presenting scalars, resources, // arrays and objects. You can enable additional casters, or write your own! // See http://symfony.com/doc/current/components/var_dumper/advanced.html#casters 'casters' => array( 'MyFooClass' => 'MyFooClassCaster::castMyFooObject', ), // You can disable tab completion if you want to. Not sure why you'd want to. 'tabCompletion' => false, // You can write your own tab completion matchers, too! Here are some that enable // tab completion for MongoDB database and collection names: 'tabCompletionMatchers' => array( new \Psy\TabCompletion\Matcher\MongoClientMatcher, new \Psy\TabCompletion\Matcher\MongoDatabaseMatcher, ), // If multiple versions of the same configuration or data file exist, PsySH will // use the file with highest precedence, and will silently ignore all others. With // this enabled, a warning will be emitted (but not an exception thrown) if multiple // configuration or data files are found. // // This will default to true in a future release, but is false for now. 'warnOnMultipleConfigs' => true, // By default, output contains colors if support for them is detected. To override: 'colorMode' => \Psy\Configuration::COLOR_MODE_FORCED, // force colors in output 'colorMode' => \Psy\Configuration::COLOR_MODE_DISABLED, // disable colors in output ); ?> 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 http://t.co/GW8CWJadKs 这个console插件不错,可以像 irb 那样使用 PHP,再也不用为了写几行 PHP 而新建一个.php 文件了— 徐羿君 (@jun_cn) July 15, 2015 Psysh http://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! 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 Late to the game but I just massively/instantly got into #psysh http://t.co/ZILQNwF1sG @bobthecow ??— Mike Whiting (@mikejw) May 22, 2015 Interactive debuger for PHP http://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: http://t.co/76Yjqt4rZz— Chris (@ninthspace) April 9, 2015 #PsySH where have you been all my (developer) life! check out this PHP REPL at http://t.co/pDLdWuR9cK— YourWebDevGuy (@YourWebDevGuy) March 17, 2015 psysh - The best REPL (runtime developer console, interactive debugger) for PHP. http://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 http://t.co/3eHyCSTQUX— Raffael Tancman (@rtancman) February 10, 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 #PsySH THE most awesome #php #repl and debug console http://t.co/hIy0wLNnDw— #!/bin/flatline (@___flatline___) January 30, 2015 PHP has never been more fun before! PsySH rocks! http://t.co/KisQB0q2IM #php pic.twitter.com/cvgA6OMpbZ— Abu Ashraf Masnun (@masnun) January 28, 2015 #PHP gone #REPL! http://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 http://t.co/5zItzSZMG8 #WebBizarro pic.twitter.com/lYHEgsMSkR— Web Bizarro (@BizarroWeb) November 7, 2014 AND THE HEAVENS OPENED: http://t.co/VrQjD0ffax— Gemma Lynn (@ellotheth) October 31, 2014 Interactive PHP Debugging with PsySH : http://t.co/giIG3pmZfQ— SitePoint (@sitepointdotcom) September 29, 2014 My favorite PHP interactive console (REPL) is http://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 (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 使いやすいPHPのREPL http://t.co/BtG32FroBv— ryo hongo (@rhong_) July 8, 2014 めっちゃ便利なPHPのREPL PsySH http://t.co/O0GZoP6yfP— numa (@numa08) May 7, 2014 Ohai psysh (http://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 http://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” http://t.co/mVxxo5DwTg— Hiraku (@Hiraku) February 21, 2014 Finally a decent PHP REPL. PsySH ~ http://t.co/HKddZIF37b By @bobthecow— Marnu Lombard (@mr_springtime) February 4, 2014 How could I live without a wtf command ? http://t.co/cpXbe7g1y7— Antoine Guigan (@AntoineGuigan) January 29, 2014 Love this project #psysh http://t.co/uNxdL4GoAc— Clint Tyler (@cdtweb) January 28, 2014 PsySH, debugging in #php just got serious http://t.co/98KMjU01RS— Alessandro Nadalin (@_odino_) January 27, 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 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 http://t.co/DWJ8P48TYj is the #php REPL shell we have been waiting for. How to start an interactive shell with a… http://t.co/R98sEdi6uO— Barnaby Walters (@BarnabyWalters) November 18, 2013 Interactive debugging for PHP, http://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. http://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 http://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 http://t.co/tjyAERfRHA— Scott Small (@smallsco) July 25, 2013 Watch on GitHub Fork on GitHub Follow @bobthecow Share on Twitter Share on Google+ Share on Facebook PsySH is kinda rad. Made by Justin Hileman and some really awesome contributors.

psysh.org Whois

Domain Name: PSYSH.ORG