php-activerecord is an open source ORM library based on the ActiveRecord pattern. It aims to massively simplify the interactions with your database and eliminate the chore of hand written SQL for common operations. Unlike other ORMs, you do not need to use any code generators nor maintain mapping files for your tables. This library was inspired by Ruby on Rails' implementation and therefore borrows many of its conventions and ideas. The best place to get started is by checking out the Guides below! The library is licensed under the MIT License and so you are completely free to do whatever you want with it.
We've moved! Previously this website was running at a less than ideal facility. Over the weekend we moved it over to a much better host so hurricanes and power outages should no longer be taking the site down.
Did you know? PHP-AR has Eager Loading
Eager loading cuts down on the number of queries that are executed when dealing with associations. Specifically, it circumvents the "N + 1 query problem":http://www.google.com/search?hl=en&q=n+%2B+1+query+problem&aq=f&aqi=g1&aql=&oq=&gs_rfai=.
php-activerecord 1.0 released!
Version 1.0 is now official. Here are the list of changes from 1.0 RC1: - fixed an error with eager loading when no records exist - fixed set methods on DateTime objects to properly flag attributes as dirty...
Just the basics to get up and running.
Configuration / Setup
Configuration and setup options.
Introduction to the conventions used.
How to perform basic CRUD operations.
In-depth look at getting the data you need.
Using table relationships with your models.
These help ensure data integrity.
Take control of your models.
Miscellaneous options and helpful short-cuts.
Using with various frameworks.