PHP Classes

PHP Database Class Generator: Generate classes to access MySQL databases

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 722 All time: 4,591 This week: 455Up
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: 108114 in Pakistan Pakistan
Week rank: 227 Up6 in Pakistan Pakistan Up

Example

<?php

require_once("genrator.php");

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

?>


  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:722
This week:0
All time:4,591
This week:455Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1776