开发者

Use Something like Rails Generator for PHP Development

I want to create a command line based tool for PHP Development.

It should do something quite similar based on what the rails generator does 开发者_如何学Pythonas well as integrate with rake, as the rake tasks for the DB should also be available.

Or is there a ruby framework that allows to build such generators?


Look into a few ORM projects like Doctrine, you can also look into some other frameworks like Symphony or Cake, I don't think there is one for Zend.


Zend Framework has the API for building CLI tools on top of Zend_Tool. Besides, it has Zend_CodeGenerator component for most of PHP code reflection, extending and modifying. Writing own Zend_Tool providers is hard, but possible. For ORM generation you should use Doctrine.


If you want Rails-like functionality for PHP Development, why not use a similar framework? CodeIgniter, for example, has database migrations and CakePHP has scaffolding as well as migrations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜