Thursday, May 5, 2011

Scaffolding for PHP

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

EDIT: I need something to prototype quickly..

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

    Akshay : i looked at cakePHP but it seemed you still have to do a bunch of stuff. (i maybe wrong!)
    troelskn : So do you with Rails' scaffolding. It's really just a startingpoint.
  • 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...

    Akshay : thanks.. phpScaffold is almost what i was looking for.
  • 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.

    Alex : I too use QCodo, it's awesome. The fork of QCodo that's currently active in development is QCubed
  • 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.

    Akshay : 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.
  • 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/

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

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.