Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Here's what would make me accept PHP as passable practical web programming language: A good REPL, with good support for it over all frameworks. That's all it would take.

Given that it doesn't have one, python beats it easily.



view as:

You mean like boris? https://github.com/d11wtq/boris

Looks good, but here's the practical question: Can I enter this REPL with all the libraries and models of my web framework loaded so that I can query a model through it, modify the object and save?

No more than you could with any other execution environment. Autoloaders should find your libraries if you are using the same entry point, and you can query a model as you could in any other language. It looks like people have made something like this for CakePHP: http://josediazgonzalez.com/2013/12/04/interactive-command-l...

And there are some REPLs with tab completion: https://github.com/ErikDubbelboer/php-repl



Legal | privacy