PHP GEN reads the tables list in a database, lets you select one, then reads the structure of it, suggests you a basic (modifiable) configuration, and generates good-style and easy mantainable PHP code capable of listing, adding, editing and deleting records. Both the generated code and the engine itself use Pear::DB for database-abstraction layer and Smarty for the presentation/interface layer.