views:

29

answers:

3

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 as 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?

A: 

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.

Catharsis
A: 

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.

nefo_x
A: 

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.

Mark Thomas