An easy to use ORM for PHP

2013 年 9 月 27 日4870

php.activerecord

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.

Get Stable Build - v1.0

June 27, 2010

Get Nightly Build

August 26, 2013



Latest News

Website Downtime

- Mon Sep 26 12:43:49 -0400 2011


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

- Tue Aug 31 19:31:08 -0400 2010


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://http://www.zjjv.com///search?hl=en&q=n+%2B+1+query+problem&aq=f&aqi=g1&aql=&oq=&gs_rfai=.

php-activerecord 1.0 released!

- Sun Jun 27 20:02:55 -0400 2010


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...

Guides

Quick Start

Just the basics to get up and running.

Configuration / Setup

Configuration and setup options.

Conventions

Introduction to the conventions used.

Basic CRUD

How to perform basic CRUD operations.

Finders

In-depth look at getting the data you need.

Associations

Using table relationships with your models.

Validations

These help ensure data integrity.

Callbacks

Take control of your models.

Utilities

Miscellaneous options and helpful short-cuts.

Frameworks

Using with various frameworks.


Issues

phpactiverecord.org - An easy to use ORM for PHP

MIT License

0 0