是否有一个更好的控制台PHP比在交互模式下运行 [英] Is there a better console for PHP than running in interactive mode
问题描述
有什么像 ipython 的问题吗?语法高亮和没有控制台退出到shell上的第一个异常将是很好的haves。 :)
Is there something like ipython for PHP? Syntax highlighting and not having the console exit to shell on the first exception would be nice to haves. :)
推荐答案
Interactive Shell将在PHP 5.4中得到改进。
The Interactive Shell will be improved in PHP 5.4.
请参阅 http://schlueters.de/ blog / archives / 133-Now-in-trunk-Improved-interactive-shell.html
改进的CLI交互式readline shell (Johannes)
Improved CLI Interactive readline shell (Johannes)
- 添加了cli.pager ini设置以设置输出页面。
- 添加cli.prompt ini设置以配置shell提示符。
- 添加了快捷键#inisetting =值可在运行时更改ini设置。
- Added cli.pager ini setting to set a pager for output.
- Added cli.prompt ini settingto configure the shell prompt.
- Added shortcut #inisetting=value to change ini settings at run-time.
- Don't terminate shell on fatal errors.
另一种方法是 http://phpsh.org/
phpsh是一个交互式shell对于php,其功能readline历史,选项卡完成,快速访问文档。它是在Facebook开发的,讽刺的是,主要写在python。它是开源的,并根据修改的BSD许可证发布。
phpsh is an interactive shell for php that features readline history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license.
这篇关于是否有一个更好的控制台PHP比在交互模式下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!