Answer the question
In order to leave comments, you need to log in
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
Here is something more like ActiveRecord from CodeIgniter and Rails www.crystal-project.net
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.
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/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question