ORMer v0.2
Started: 2007-02-13 Updated: 2008-03-05
Progress: 60%
Language: PHP5
OS: Web
License: MIT
Project Page | Examples | Browse the Latest Code | Bugs
This is an approach to Object-Relational Mapping (Active Record) written in PHP5. There are no XML config files, or assumptions about table and field names. It's a tool to keep you from repeatedly writing mindless SQL join queries and other trivially common things.
Also, this project needs your help. Check out the latest code from the repository, use it, abuse it, change it and send me patches. Communicate with me through email for now (this domain, alan@).
Goals
- Automatic relationship discovery through foreign keys (almost complete)
- Give the coder the ability to specify relationships manually if you don't want to use foreign keys
- No assumptions about your table or field names
- No requirements about your table or field names; use your own conventions
- Simplest possible way of adding extra clauses to relation queries: method chaining (see examples)
- Step out of the way when you need to flex SQL skills that ORMer can't hack
- Give as much of an illusion as possible that you're not dealing with a database
So Please:
- Contribute code
- Use the project and let me know where it fails
- Tell us about the killer features you'd like to see
- Use the form to the right to let me know what you think
Download and Examples
Version Control (Mercurial) Repository
Browse it to keep up. Or "hg clone http://greaterscope.net/hg/orm"
Version 0.2
Not released yet. Check the repository above.
Upcoming Features
- Relation discovery through foreign keys in PostgreSQL
- Ability to modify related data by dealing with objects (rather than directly through database rows)
- Cascading on events such as deleting an object, like Ruby on Rails' Active Record
What Do You Think?