A
A
Anton Medvedev2010-09-17 11:38:31
PHP
Anton Medvedev, 2010-09-17 11:38:31

ActiveRecord for PHP5.2

Can anyone suggest a good class (not in the framework, can be used without it) for ActiveRecord running under PHP5.2?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
MARDEN, 2010-09-19
@MARDEN

I used ActiveRecord from Yii framework.

S
So1, 2010-09-17
@So1

Will Doctrine work?

R
Renat Ibragimov, 2010-09-17
@MpaK999

Here is something more like ActiveRecord from CodeIgniter and Rails www.crystal-project.net

U
un1t, 2010-09-19
@un1t

I also came across such a thing www.phpactiverecord.org/
“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."
True, I haven’t used it, so I can’t say anything, but it might be worth taking a look at it.

O
outself, 2010-09-19
@outself

A couple of times I came up "with a binge" to the choice of ActiveRecord PHP.
Doctrine
The size of the library is large, many files, many layers for "honest" ActiveRecord, complete abstraction from SQL functions and a specific DB. One ORM instance takes up enough memory. Var_dump is better not to do for him, it will break the screen.
>> www.michaelpaul.com.br/introducao-orm-php-doctrine.html
>> ini_set('memory_limit', '256M');
It doesn't suit me, now I use ActiveRecord from LIMB, I don't need to include the whole framework. Everything that is in Doctrine, except for specific DQL, is in LIMB. Memory is consumed less.
Read more: habrahabr.ru/blogs/php/104106/

M
myem, 2010-09-19
@myem

Here is the old one, it also works for php4, the ADOdb library, you might be interested:
phplens.com/lens/adodb/docs-active-record.htm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question