Is there any thing in PHP to create basic scaffold, like in Rails?
EDIT: I need something to prototype quickly..
Is there any thing in PHP to create basic scaffold, like in Rails?
EDIT: I need something to prototype quickly..
If you use CakePHP as the web framework it supports scafalding. See this link for more info. http://book.cakephp.org/view/105/Scaffolding
Some frameworks like Symfony, CakePHP, Akelos, CodeIgniter and others have support for scaffolding.
However if you don't want to use a framework you can try phpScaffold which generates CRUD scaffold pages based on phpMyAdmin table exports...
QCodo is another great option. And since it uses reflection to do Code Generation instead of reflection at runtime, you'll likely see better performance.
First, Rails is a framework. PHP is a language. PHP does not have built-in scaffolding support, just as Ruby--the language Rails is build on--does not. A framework like CakePHP, however, does support scaffolding.
Second, I see that you raised an objection to CakePHP because "you still have to do a bunch of stuff." That's true--with any framework, you're going to have to learn new conventions, configurations etc.
For myslef I Use CodeIniter for development, sure they have scaffolding, but only in terms of a "simple scaffolding" which mean you're not gonna use it in live product (i dunno about everyone but i'm only using it as some tools) .
but if you need some like CRUD generator you can use SparkPlug , or Ignition both of them can be used on Codeigniter
Another approach to scaffolding is using action delegates... a pretty good article on that can be found here http://iam.mrburly.com/content/display/show/slug/action-delegates.
For anyone else reading this thread, I've released a powerful standalone scaffold class for PHP: http://www.aaronharp.com/dev/php-scaffold-class/