views:

1555

answers:

7

I am looking for a simple PHP crud object generator to use with SQL database tables.

I've used POG and was wondering if there were any alternatives.

A: 

Are you looking for something like CakePHP? http://cakephp.org/

eckesicle
A: 

You might take a look at MyGeneration. There are PHP templates for it that you can extend. The one [minor] down side is that the template languages are limited to JScript, VBScript, C# and VB.NET.

pdavis
A: 

I've found that sometimes when people say they want CRUD, what they really want is ORM. Have you considered Doctrine?

Jeremy DeGroot
+2  A: 

Dynamic typed languages like PHP can create the object/class interface at runtime. (with the __get(), __set() and other "magic" functions)

It allows an alternative to code-generation.

  • Which allows modification to the "base" behaviour without losing the local(subclasses) changes.
  • Reduces duplicate code.
  • Regenerating classes the 2nd time can be painful.

Using an ORM like Doctrine or PHP ActiveRecord has my preference as far as CRUD goes.

Bob Fanger
A: 

The CakePHP 'Bake' console app will have you CRUDing in minutes!

edit: I should also add that this requires the use of the CakePHP framework.

A: 

Are you looking for CRUD for yourself or trying to create a CMS for a back end user? You using frameworks like Cake are great, but you'd have to switch your entire site over to that unless you keep it in its own folder. If its a CMS you want, check out things like http://www.silverstripe.com/

Code Monkey
A: 

I developed a CRUD generator for PHP (it generates Joomla CRUD components based on data structure defined in DBDesigner). [email protected]

Gregor Swierczynski