2 ms·
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 th
by dscrd 13y ago
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?
- oinksoft 13y agoNo 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-line-repl/ http://josediazgonzalez.com/2013/12/04/interactive-command-l... And there are some REPLs with tab completion: https://github.com/ErikDubbelboer/php-repl https://github.com/ErikDubbelboer/php-repl
- indeyets 13y agohttps://github.com/d11wtq/boris#using-boris-with-your-application-loaded https://github.com/d11wtq/boris#using-boris-with-your-applic...