是否有任何包含小型Web服务器和丰富的控制台工具(例如RoR/Django)的php框架? [英] Are there any php frameworks contain small webserver and rich console tools like RoR/Django?
问题描述
在Ruby on Rails中,我可以启动Web应用程序,只需在控制台中编写:脚本/服务器.RoR包含小型Web服务器和丰富的控制台工具,但是我在php框架中没有遇到这样的工具.是否有任何包含小型Web服务器和丰富控制台工具的php框架?
In Ruby on Rails, I can start my web application, just write in console: script/server. RoR contains small webserver and rich console tools, but I didn`t meet such tools in php frameworks. Are there any php frameworks contain small webserver and rich console tools?
推荐答案
PHP和任何PHP框架都没有提供自己的Web服务器.一些框架提供 rake
之类的工具,例如Cake的 bake
或ZF的 Zend_Tool
.还有 Phing 和 Pake 并非特定于框架.在PHP中最接近Gem的是 PEAR .您可以使用 php -a
Neither PHP, nor any of the PHP frameworks bring their own webserver. Some frameworks offer rake
like tools like Cake's bake
or ZF's Zend_Tool
. There is also Phing and Pake that are not specific to a framework. The closest to Gem in PHP is PEAR. You can start PHP in interactive mode from the shell with php -a
从PHP 5.4开始,PHP还具有自己的内部werbserver,您可以从CLI开始使用
As of PHP 5.4 PHP also has it's own internal werbserver, which you can start from CLI with
php -S localhost:8000
您可以在 http://php.net上了解有关该功能的更多信息./manual/en/features.commandline.webserver.php
这篇关于是否有任何包含小型Web服务器和丰富的控制台工具(例如RoR/Django)的php框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!