RedBeanPHP 4
The Power ORM

Welcome

RedBeanPHP is an easy-to-use, on-the-fly ORM for PHP. It's 'zero config', relying on strict conventions instead. Let's look at the code, this is how you do CRUD in RedBeanPHP:

    require 'rb.php';
    
R::setup();

    
$post R::dispense('post');
    
$post->text 'Hello World';

    
$id R::store($post);       //Create or Update
    
$post R::load('post',$id); //Retrieve
    
R::trash($post);             //Delete

This automatically generates the database, tables and columns... on-the-fly. It infers relations based on naming conventions. Download RedBeanPHP Now. RedBeanPHP is written by BDFL Gabor de Mooij and the RedBeanPHP community.

News

: RedBeanPHP 4.1.3 has been released.
: RedBeanPHP 4.1.2 has been released.
: Migrated to new server.
: RedBeanPHP 4.1.1 has been released (refined type scanners in QueryWriters).
: Yay! RedBeanPHP 4.1 has been released!
: RedBeanPHP 4.1 Beta 5 has been released!
: RedBeanPHP 4.1 Beta 4 has been released!
: RedBeanPHP 4.1 Beta 3 has been released!
: RedBeanPHP 4.1 Beta 2 has been released!
: RedBeanPHP 4.1 Beta 1 has been released!

Zero Config

No need to configure anything. No annotations or lengthy XML files. Just follow the conventions and everything works.
Installation is also easy, just one file! No autoloaders, package management or include paths. RedBeanPHP also automatically configures your database connection to use UTF-8 encoding.

Fluid Schema

RedBeanPHP will adapt the database schema to fit your needs. It will create the tables and columns you need and change those columns if necessary.
During development, this will give you the 'NoSQL' experience. However, when you deploy on a production server you can freeze the schema and benefit from performance gains and referential integrity. RedBeanPHP combines the best of both worlds: the comfort of NoSQL and the reliability of relational database systems.

Powerful

Although RedBeanPHP is a compact library, it's packed with powerful features. FUSE allows you to add model classes for records ad-hoc, as soon as RedBeanPHP discovers the presence of a domain model it will start using it. The duplicate method can create deep copies of any object structure in the database. The Dispense method can process entire arrays and convert them to object hierarchies. This is just a sample of all those powerful features offered by RedBeanPHP.

Compatible

RedBeanPHP is compatible with most well known databases and strives for compatibility with ALL Free, Open Source databases. Currently, RedBeanPHP supports: MySQL, MariaDB, SQLite, PostgreSQL and CUBRID. There is 3rd party support for some commercial database platforms as well including SQL Server and OCI (for details see Github), however I have NEVER tested these because I focus on Free, Open Source platforms only.

Download

Download the easy-to-use one-in-all package, one single file containing the entire RedBeanPHP library! No composer, no auto-loaders, no configuration, just download and run! Go to the download page and download to latest version of RedBeanPHP!

RedBeanPHP is a zero config, fire-and-forget ORM library, which is pretty fun, but it enforces strict database conventions. The best way to use RedBeanPHP is to start with an empty database and let RedBeanPHP build the schema for you on-the-fly. Don't try to shoehorn RedBeanPHP into existing projects with custom schemas.
Not sure if RedBeanPHP is the way to go ? Take a look at our checklist!


 

RedBeanPHP Easy ORM for PHP © 2014 () and the RedBeanPHP community () - Licensed New BSD/GPLv2 - RedBeanPHP Archives