RedBeanPHP 4
The Power ORM

Welcome

RedBeanPHP is easiest way to do ORM in PHP. It creates all tables and columns you need on-the-fly and it does not require a single line of configuration!

If development speed matters.

News

: RedBeanPHP 4.1.4 has been released
: 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!

Code Example

This is how you do CRUD in RedBeanPHP:

    require 'rb.php';
    
R::setup();
    
R::setAutoResolveTRUE );        //Recommended as of version 4.2
    
$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.

Zero Config

No verbose XML files, no annoying annotations, no YAML or INI. Zero Config. Just start coding.

Fluid Schema

During development, RedBeanPHP will adapt the database schema to fit your needs, giving you the NoSQL experience. When deploying to production servers, you can freeze the schema and benefit from performance gains and referential integrity.
RedBeanPHP offers the best of both worlds!

Powerful

RedBeanPHP is a compact library yet packed with features: auto-discovery of models, deep copying and smart import features will boost your productivity!

Compatible

RedBeanPHP strives to support all 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.

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!

Photo 'Speed of Light' copyright © (Attribution-NonCommercial 2.0 Generic License) by Jonathan Cohen. Photo was added as a layer to a standard template featuring the slogan and RedBeanPHP text using the GIMP on Linux/CRUX. Original GIMP file available on request. Original description of photo: 'Afternoon ride on the coast road, Encinitas, CA.'.


 

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