PHPackages                             daviddeutsch/redbean-adaptive - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. daviddeutsch/redbean-adaptive

ActiveLibrary[Database &amp; ORM](/categories/database)

daviddeutsch/redbean-adaptive
=============================

Reworking RedBeanPHP to be more adaptive to complex situations

0818[1 issues](https://github.com/daviddeutsch/redbean-adaptive/issues)PHP

Since May 24Pushed 11y ago2 watchersCompare

[ Source](https://github.com/daviddeutsch/redbean-adaptive)[ Packagist](https://packagist.org/packages/daviddeutsch/redbean-adaptive)[ RSS](/packages/daviddeutsch-redbean-adaptive/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

RedBean
=======

[](#redbean)

Current Build Status: [![Build Status](https://camo.githubusercontent.com/0a078b3dc846f55714976e9825a4a094afbb9ac43fe067a7edd6ed67c6e5b287/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6761626f7264656d6f6f696a2f7265646265616e2e706e67)](http://travis-ci.org/gabordemooij/redbean)

RedBeanPHP is an easy to use ORM tool that stores beans directly in the database and creates all tables and columns required on the fly. On the other hand it allows plain SQL to search the database. In fact RedBean is some sort of combination between document oriented database tools like mongoDB or couchDB and traditional relational database systems like MySQL. It offers the best of both worlds: SQL and no-SQL. You work with no-SQL if you interact with objects will you simply turn the switch and work with SQL if you want to do some typical database tasks like searching or quickly grabbing something out of the data store with specially crafted SQL. RedBean also has excellent performance because it can freeze the database schema which means it no longer scans schemas.

Databases Supported
-------------------

[](#databases-supported)

RedBean supports MySQL (InnoDB), PostgreSQL, SQLite3, CUBRID and Oracle.

Quick Example
-------------

[](#quick-example)

How we store a book object with RedBean:

```
$book = R::dispense("book");
$book->author = "Santa Claus";
$book->title = "Secrets of Christmas";
$id = R::store( $book );
```

Yep, it's that simple.

Install with Composer
---------------------

[](#install-with-composer)

You can use RedBeanPHP with [Composer](http://getcomposer.org/).

Create `composer.json` in project root:

```
{
  "require": {
    "gabordemooij/redbean": "dev-master"
  }
}
```

Install via composer:

```
php composer.phar install
```

Autoloading:

```
require 'vendor/autoload.php';
use RedBean_Facade as R;
```

More information
----------------

[](#more-information)

For more information about RedBeanPHP please consult the RedBeanPHP online manual at:

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e06246042d249fd66aa6bd43f8d05e8fee16c6c55da3d1d7e77646c2d420d115?d=identicon)[daviddeutsch](/maintainers/daviddeutsch)

---

Top Contributors

[![gabordemooij](https://avatars.githubusercontent.com/u/89826?v=4)](https://github.com/gabordemooij "gabordemooij (548 commits)")[![daviddeutsch](https://avatars.githubusercontent.com/u/630246?v=4)](https://github.com/daviddeutsch "daviddeutsch (198 commits)")[![tomasklapka](https://avatars.githubusercontent.com/u/370171?v=4)](https://github.com/tomasklapka "tomasklapka (14 commits)")[![DontNeedGithubAccount](https://avatars.githubusercontent.com/u/5270067?v=4)](https://github.com/DontNeedGithubAccount "DontNeedGithubAccount (13 commits)")[![seanhess](https://avatars.githubusercontent.com/u/16249?v=4)](https://github.com/seanhess "seanhess (8 commits)")[![katanacrimson](https://avatars.githubusercontent.com/u/121707?v=4)](https://github.com/katanacrimson "katanacrimson (8 commits)")[![oivseblya](https://avatars.githubusercontent.com/u/166500051?v=4)](https://github.com/oivseblya "oivseblya (4 commits)")[![jstsch](https://avatars.githubusercontent.com/u/602751?v=4)](https://github.com/jstsch "jstsch (4 commits)")[![SteveEdson](https://avatars.githubusercontent.com/u/1201960?v=4)](https://github.com/SteveEdson "SteveEdson (3 commits)")[![F21](https://avatars.githubusercontent.com/u/2263040?v=4)](https://github.com/F21 "F21 (3 commits)")[![hugollm](https://avatars.githubusercontent.com/u/376767?v=4)](https://github.com/hugollm "hugollm (3 commits)")[![agvstin](https://avatars.githubusercontent.com/u/130192?v=4)](https://github.com/agvstin "agvstin (2 commits)")[![brianhaveri](https://avatars.githubusercontent.com/u/201194?v=4)](https://github.com/brianhaveri "brianhaveri (2 commits)")[![gaving](https://avatars.githubusercontent.com/u/43741?v=4)](https://github.com/gaving "gaving (2 commits)")[![marcioAlmada](https://avatars.githubusercontent.com/u/227395?v=4)](https://github.com/marcioAlmada "marcioAlmada (2 commits)")[![midnightmonster](https://avatars.githubusercontent.com/u/57948?v=4)](https://github.com/midnightmonster "midnightmonster (2 commits)")[![zerotri](https://avatars.githubusercontent.com/u/226539?v=4)](https://github.com/zerotri "zerotri (2 commits)")[![palicao](https://avatars.githubusercontent.com/u/659961?v=4)](https://github.com/palicao "palicao (1 commits)")[![rlerdorf](https://avatars.githubusercontent.com/u/54641?v=4)](https://github.com/rlerdorf "rlerdorf (1 commits)")[![saetia](https://avatars.githubusercontent.com/u/869498?v=4)](https://github.com/saetia "saetia (1 commits)")

### Embed Badge

![Health badge](/badges/daviddeutsch-redbean-adaptive/health.svg)

```
[![Health](https://phpackages.com/badges/daviddeutsch-redbean-adaptive/health.svg)](https://phpackages.com/packages/daviddeutsch-redbean-adaptive)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
