PHP Classes

PHP Database Class Generator: Generate classes to access MySQL databases

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 721 All time: 4,589 This week: 114Up
Version License PHP version Categories
db-class-generator 1.1BSD License3.0PHP 5, Databases, Code Generation
Description 

Author

This class can generate classes to access MySQL databases.

It connects to a given MySQL database and retrieves the list of its tables.

The class generates class files for each table that can perform several types of database operations like INSERT, UPDATE and DELETE records, retrieve the record with a given identifier, display database table record data using the Grid class, generate form select input from values of the table, etc..

The generated code is stored in a PHP script with the name based on the database table under a directory with the database name. The class also creates the necessary directories.

Picture of Kamran Shahid Butt
Name: Kamran Shahid Butt <contact>
Classes: 3 packages by
Country: Pakistan Pakistan
Age: 40
All time rank: 108115 in Pakistan Pakistan
Week rank: 362 Up6 in Pakistan Pakistan Up

Example

<?php

require_once("genrator.php");

$obj = new OSSGenrator("localhost","root","","database");
$obj->Generate();

?>


  Files folder image Files  
File Role Description
Plain text file genrator.php Class PHP Generator
Plain text file mysql.php Class MySQL Connection file
Accessible without login Plain text file sample-generate.php Example This is the sample file of generator

 Version Control Unique User Downloads Download Rankings  
 0%
Total:721
This week:0
All time:4,589
This week:114Up