Pergunta

I want to build a PHP web application, but always faces the problem that I need to connect to database and deal with related objects. So I tried codeigniter and it uses a special way to connect to database named Active Record and I've known that its an ORM technique and there are lot of ORM libraries out there.

What is the best, the easiest and the fastest of them?

Foi útil?

Solução

RedBean is what I use for such purpose: http://redbeanphp.com/

RedBean eases the development phase with automatic schema modifications, on the fly. it works very well with MySQL and SQLite but other databases supported by PDO should work too.

Outras dicas

Doctrine and Propel are two popular ORMs. Personally I only have experience with Doctrine and have no complaints.

You should also read through the answers to this question on StackOverflow.

I really have to sing praise for PHP.ActiveRecord. It's nearly a direct clone from Rails' ActiveRecord ORM. It has been nothing but awesome for me an is relatively painless to integrate into modern frameworks.

Both developers are regularly available on their support forums to give help to those in need.

It's a brilliant project and I highly recommend it - especially if you're from a Rails background.

Licenciado em: CC-BY-SA com atribuição
scroll top