- Introduction to POG
- Setting up PHP, MySQL etc.
- Designing your objects
- Generating your code
- Description of the generated code
- Edit configuration file
- The Setup Process
- Using the code: Save()
- Using the code: Get()
- Using the code: SaveNew()
- Using the code: GetList()
- Using the code: Delete()
- Using the code: DeleteList()
- Advanced: object relations
- Advanced: Set{Parent}()
- Advanced: Get{Parent}()
- Advanced: Add{Child}()
- Advanced: Get{Child}List()
- Advanced: Save(deep)
- Advanced: Delete(deep)
- Advanced: Add{Sibling}()
- Advanced: Set{Child}List()
- Advanced: Set{Sibling}List()
- Advanced: Get{Sibling}List()
- Advanced: DeleteList(deep)
- Customizing POG-generated code
- Customizing: Extending POG Objects
- Customizing: Plugins
- Examples
- Examples: User registration system
- Examples: User authentication
- Examples: Survey form
- Examples: Using POG with AJAX
- PDO: Introduction
- PDO: SQLite example
- PDO: Firebird example
- PDO: PostgreSQL example
- PDO: MySQL example
- PDO: ODBC example
- Troubleshooting
- Troubleshooting: Data appears encoded
- Troubleshooting: Can't regenerate object
- Troubleshooting: Can't seem to Save()
- Troubleshooting: Can't get object / object attributes from database
- Troubleshooting: Can't open zip file on Mac
- Troubleshooting: Setup screen is blank
- Videos
- Appendix: Creating table(s) manually
- Appendix: Regenerating objects
- Appendix: Generating objects using SOAP
- Case Study: Gravity GTD
- Case Study: Web Form Factory
Back to the Code Generator
The POG Weblog and RSS feed.
The POG Google group
Introduction to POG
Welcome to the Tutorials! First off, a quick introduction to Php Object Generator. Php Object Generator is an object-oriented code generator for PHP 4 and PHP 5 which uses the Object Relational Mapping (ORM) programming pattern to accelerate web development. ORM allows developers to ‘forget’ about the underlying database and instead think about their web application in terms of objects. Normally, implementing this programming pattern makes the application easier to maintain in the long run, but since the initial code is generated for you, POG also gives you a head start.
The PHP objects are generated along with 5 CRUD Methods 6 CRUD Methods. The first 4 CRUD methods allow you to Save(), SaveNew(), Get() and Delete() objects easily to and from your database. The 5th & 6th CRUD methods, GetList() and DeleteList(), allow you to retrieve or delete a list of objects from the database that meet certain conditions.
There’s 3 things we wanted POG to do when we first started this project (and still keep in mind as things develop)
- Generate extremely clean and simple code which is intuitive to the average PHP programmer.
- Do simple things but do them extremely well.
- Not be a framework. Just a useful tool.
We’ve also being careful to strike the right balance between helping the PHP programmer and making sure we’re not imposing restrictions and thus ‘taking over’
his/her project.
This tutorial is aimed towards anyone who likes learning through example. We hope you find it somewhat useful.
Proceed to next step of the tutorial ››


