
Php Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application. Over the years, we realized that a large portion of a PHP programmer's time is wasted on repetitive coding of the Database Access Layer of an application simply because different applications require different objects.
By generating PHP objects with integrated CRUD methods, POG gives you a head start in any project and saves you from writing and testing SQL queries. The time you save can be spent on more interesting areas of your project. But don't take our word for it, give it a try!
Generates clean & tested code
Generates CRUD methods
Compatible with PHP4 & PHP5
Compatible with PDO
Free for personal use
Free for commercial use
POG is Open Source software
The POG Weblog and RSS feed.
The POG Google group
The POG mirror site
The POG history log
POG was written by Joel Wan and Mark Slemko. Designs by Jonathan Easton.
Feedback, Feature Requests, Bugs to: pogguys@phpobjectgenerator.com
A weblog about the Php Object Generator (POG) project, Databases and Php Code Generators in general.
Versionwritten 916 days ago
Version 1.6
New features
- Generated code package now contains a setup file
Web Interface
- Better compatibility with Opera
- Improved usability of Add Attribute feature.
- Fixed @link bug which occurred with certain attribute of types
Generated Code Improvements
- Generated code package doesn’t contain a README file anymore. Contents of readme has been merged into the setup file
- CRUD methods are now identical across objects. In particular Get
List has been renamed to GetList for all generated objects. - Improved code cleanliness and more consistent spacing in the
generated code. - GetList function now supports multiple conditions.
- GetList function now supports Limit.
- GetList orders object list by Id by default now.
- Generated objects are more easily debugged.
- Generated object have an internal attribute=>attribute type map that can be extended in the future to provide data validation.
- Objects generated for PHP 5.1 and PDO are now more consistent with objects generated for PHP 4, 5.0. They now have the ability to escape data as well
- Other obscure bug fixes
- Minor performance improvements.
Version 1.5
- Added compatibility with PDO. (PHP 5.1 and above)
- Code generated with PDO as database wrapper is compatible with other databases such Oracle, SQL Server
- Code can still be generated without using PDO as database wrapper and instead using the default POG wrapper.
- URL is included in the code header & allows you to regenerate/modify your object more easily.
- Minor bug fixin’s
- Minor performance improvements
Version 1 (rev1-rev22)
- Generates object along with 4 main methods. (Save, Get, GetList and Delete)
- Generates private helper methods which allows sorting of objects in the GetList method.
- Generates SQL query to create the table to store the object
- Generate code compatible with PHP4 or PHP5.
- Generates configuration file.
- Generates database wrapper compatible with MySQL.
- Safely encodes and decodes all object attributes automatically to prevent injection type attacks
Breakdown of 4 main methods generated by POG:
- Save
Saves object along with all associated attributes to the database. If object already exists in the database, it will be updated with any changed attributes. - Delete
Deletes object along with all associated attributes from the database. - Get
Loads object along with all associated attributes from the database. - GetList
Loads a list of objects that fit given conditions into an object array and returns the array---