Jump to content

RedBeanPHP

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 85.151.83.165 (talk) at 18:57, 27 May 2014 (Added reference on use of software in computer science curriculum). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

RedBean is free, BSD licensed, open-source object-relational mapping software written by Gabor de Mooij. It currently only supports PHP. Although it can be used as a stand-alone library there is also an integrated edition available for the Zend Framework.

Features

RedBean is different from other ORM layers because it requires no configuration in XML, YAML or JSON but it designs a database schema on its own by analyzing the PHP code, this is sometimes called Virtual ORM (ORM without mappings). This is possible because of Reflection functionality built into PHP. RedBean not only creates a database on the fly it also monitors performance, handles transactions and it automatically prevents race conditions. It scans your data and adjusts the column types to fit your object properties. If your models are stabilized you can freeze the database. This way RedBean is easy to develop with but is also extremely fast on production servers.

History

RedBeanPHP first appeared in 2009 [1]. The first publicly available version was 0.3.3. RedBeanPHP has been developed by Gabor de Mooij, a software developer from the Netherlands. Because RedBeanPHP is very accessible and it does not hide the SQL language it's often used by Universities to teach database programming [2].

See also

References

  1. ^ [1] First commit of RedBeanPHP on Github
  2. ^ http://www.cs.wcupa.edu/rkline/wp/mysql-php.html The West Chester University Computer Science Department RedBeanPHP course