Login   Register  
PHP Classes
elePHPant
Icontem

PHP or Java Class Code Generator: Generate PHP or Java database access classes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Valics Lehel
Name: Valics Lehel <contact>
Classes: 4 packages by
Country: Romania Romania
Age: 41
All time rank: 1453 in Romania Romania
Week rank: 1076 Down28 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package is meant is automate the generation of classes to access databases in Java beans style.

It uses the Fast Template engine to process template files that define the skeleton of functions and variables of classes that store and retrieve data object property values from a given database table, getter and setter functions to access those properties and a function to delete a data object row from the respective database table.

The package comes with templates to generate classes either in PHP or Java. The PHP template defines code to access data objects in a MySQL database. The Java template defines code to access data objects in any database supported by JDBC.

  Classes of Valics Lehel  >  PHP or Java Class Code Generator  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP or Java Class Code Generator
Base name: code_generator
Description: Generate PHP or Java database access classes
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
All time users: 3514 users
All time rank: 883
Week users: 0 users
Week rank: 1755 Equal
 
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

  Groups  
Group folder image Data types Modeling and manipulating data types View top rated classes
Group folder image Code Generation Compilers and tools that generate code automatically View top rated classes


  Innovation Award  
PHP Programming Innovation award winner
March 2004
Winner


Prize: One copy of DWeb Pro Lifetime License by Human Profile
Code generation is one way to increase software development productivity by automating the production of code components meant to execute repetitive well known tasks. Depending on the capabilies and maturity of the generator tool, the productivity increase may be huge.

Database access classes is a common application of code generation tools. Tables are abstracted by database access classes and the table rows are mapped to objects of those classes.

The approach of this code generation package is to use a well known template engine class, Fast Template, and make it process template files that define the skeleton of the database access classes to be generated.

The example templates for generating database access classes either in PHP or Java demonstrate that with a simple approach it can be provided a flexible solution for addressing a common problem especially in Web application development.

Despite the tool can be improved in many ways, it constitutes a good example of how to build your own code generation tool that may help other developers understand and become interested in this powerful approach.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (68%) Good (93%) - - - - Not sure (43%) 1985
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
phpCodeBeautifier
phpCodeBeautifier can be used if you want

  Files folder image Files  
File Role Description
Files folder imageinclude (3 files)
Files folder imageprogramtemplates (10 files)
Accessible without login Plain text file begin.php Appl. app script
Accessible without login Plain text file CHANGELOG Doc. changelog
Accessible without login Plain text file config.inc.php Conf. Configuration file
Accessible without login Plain text file defines.inc.php Conf. defines
Accessible without login Plain text file example.php Example Example of call generated class
Accessible without login Plain text file field.php Appl. app script
Accessible without login Plain text file generate_code.php Appl. code generator PHP
Accessible without login Plain text file index.php Appl. index
Accessible without login Plain text file README.txt Data README
Accessible without login Plain text file start.php Appl. app script
Accessible without login Plain text file table.php Appl. app script

  Files folder image Files  /  include  
File Role Description
  Plain text file cls_fast_template.php Class Template system
  Plain text file cls_string.php Class Strings, verifications
  Accessible without login Plain text file connection.php Example Connection for examples

  Files folder image Files  /  programtemplates  
File Role Description
  Accessible without login HTML file template_body.html Aux. the main template
  Accessible without login HTML file template_fields.html Aux. template file
  Accessible without login HTML file template_firstpage.html Aux. template file, firstpage
  Accessible without login HTML file template_generate.html Aux. template file
  Accessible without login HTML file template_host.html Aux. template file for mysql host
  Accessible without login Plain text file template_java_code_generator.html Data template for generating for Java
  Accessible without login HTML file template_php5_code_generator.html Aux. PHP5 template
  Accessible without login Plain text file template_php_code_generator.html Data template for generating for Java
  Accessible without login HTML file template_sql.html Aux. SQL html file
  Accessible without login HTML file template_table.html Aux. tables SQL HTML

Install with Composer Install with Composer - Download Download all files: code_generator.tar.gz code_generator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.