RedBeanPHP is an easy-to-use, on-the-fly ORM for PHP. It is zero config, relying on strict conventions instead. Let's look at the code, this is how you do CRUD in RedBeanPHP:
//don't be afraid of the phar, just include it like a normal .php
$post = R::dispense('post');
$post->text = 'Hello World';
$id = R::store($post); //Create or Update
$post = R::load('post',$id); //Retrieve
RedBeanPHP automatically generates the database, tables and columns on-the-fly. RedBeanPHP infers relations based on naming conventions. Download RedBeanPHP Now
: RedBeanPHP 4 KS Beta 3 has been released (changelog).
: RedBeanPHP 4 KS Beta 2 has been released ! (see below)
: RedBeanPHP 3.5 LTS update 7 has been released! See changelog.
: A new website for a new version of RedBeanPHP!
: Valentine suprise! RedBeanPHP 4.0 KS Beta 1 has been released, ahead of schedule!
We are currently beta testing RedBeanPHP 4KS. Planned release: April (however we are ahead of schedule so the actual release date may be a bit sooner).
Since version 4, RedBeanPHP comes in two flavours: KickStart (KS) and Adaptive (A).
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!
Download the latest version of RedBeanPHP; RedBeanPHP 4KS BETA 3 (KickStart Edition) (requires PHP 5.3+).
Or download the LTS edition of RedBeanPHP: RedBeanPHP 3.5 LTS.
or read about the RedBeanPHP 4A Adaptive Edition.
Some IDEs have trouble scanning PHAR files. IDE companies are working to resolve these issues, meanwhile if you experience any issues, download the IDE support file to improve auto-complete functionality in your code editor.
RedBeanPHP is zero config, fire-and-forget 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
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!