views:

2962

answers:

8

Is there any thing in PHP to create basic scaffold, like in Rails?

EDIT: I need something to prototype quickly..

+1  A: 

If you use CakePHP as the web framework it supports scafalding. See this link for more info. http://book.cakephp.org/view/105/Scaffolding

Jared
i looked at cakePHP but it seemed you still have to do a bunch of stuff. (i maybe wrong!)
Akshay
So do you with Rails' scaffolding. It's really just a startingpoint.
troelskn
+2  A: 

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...

CMS
thanks.. phpScaffold is almost what i was looking for.
Akshay
+1  A: 

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.

CaseySoftware
I too use QCodo, it's awesome. The fork of QCodo that's currently active in development is QCubed <http://qcu.be>
Alex
+1  A: 

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.

Lucas Oman
Maybe the language of question was not perfect, but basic intent was just to find something that will generate basic scaffold _in_ php code; just like rails scaffold generator does. Not that i'm opposed to learning a new framework, but currently i just needed that just generates basic scaffold. Thx.
Akshay
A: 

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

ibnu triyono
A: 

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.

Lance
A: 

For anyone else reading this thread, I've released a powerful standalone scaffold class for PHP: http://www.aaronharp.com/dev/php-scaffold-class/

Aaron
A: 

what about aaronharp.com scaffold class? is $29 but its worthit.

Flakerim