RedBeanPHP

easy ORM for PHP

Architecture

RedBeanPHP has a beautiful, clean and easy to understand architecture. In essence, RedBeanPHP consists of three basic core classes: OODB, Adapter and QueryWriter. Each core class has its own task. The task of the Adapter is to connect to a database driver, the task of the QueryWriter is to write database specific SQL and execute it using the adapter. The task of OODB is to perform CRUD using the QueryWriter. Because RedBeanPHP supports many databases there are several versions of QueryWriter, all implementing the same QueryWriter interface. While RedBeanPHP only supports PDO, it's possible to write alternative Adapters implementing the same Adapter interface.
The toolbox is nothing more than a combination of OODB with a specific Adapter and QueryWriter. In essence it's just a place to put tools for a specific environment; i.e. PDO plus PostgreSQL. Finally we have to facade. The facade is just a collection of static methods that work right out of the box. All these functions use the toolbox and OODB to perform tasks without you having to know about the details. For more info Visit API pages.



User contributed notes. Please use the comment section to provide tips, notes and examples. To ask for support or to provide feedback use the forum. For bug reports use Github Issue Tracker.

Site comments powered by Disqus

page generated in 0.010587930679321 sec.