PHPackages                             tkxel/redbean-tkxel - 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. tkxel/redbean-tkxel

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

tkxel/redbean-tkxel
===================

RedBeanPHP ORM - PHP 8 Support

17PHP

Since Apr 15Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mohsin-tkxel/redbean)[ Packagist](https://packagist.org/packages/tkxel/redbean-tkxel)[ RSS](/packages/tkxel-redbean-tkxel/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

RedBeanPHP 5
============

[](#redbeanphp-5)

[![Build Status](https://camo.githubusercontent.com/8e6c195f716825d13f80ce202d3ce7a73f9c2d3daac3697a165e100349167b38/68747470733a2f2f7472617669732d63692e6f72672f6761626f7264656d6f6f696a2f7265646265616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gabordemooij/redbean)

RedBeanPHP is an easy to use ORM tool for PHP.

- Automatically creates tables and columns as you go
- No configuration, just fire and forget
- No complicated package tools, no autoloaders, just ONE file

Installation (recommended)
--------------------------

[](#installation-recommended)

Download RedBeanPHP from the website:

Extract the archive and put it in your PHP project, voila!

Optional: sha256sum and check signature.

Installation via Composer (not recommended)
-------------------------------------------

[](#installation-via-composer-not-recommended)

Just open your composer.json file and add the package name `(e.g. "gabordemooij/redbean": "dev-master")` in your require list.

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

**NOTE**: You will find many examples on the RedBean website make use of RedBean's `R` class. Because of namespaced autoloading in Composer, this class will be available as `\RedbeanPHP\R` instead of `R`. If you desire to use the much shorter `R` alias, you can add a `use` statement at the beginning of your code:

```
use \RedBeanPHP\R as R;
```

**NOTE:**It is important to note that when using RedBeanPHP with Composer, there are some extra precautions needed when working with [Models](https://redbeanphp.com/index.php?p=/models). Due to the namespace requirements of Composer, when creating Models we need to use the `SimpleModel` to extend, not `RedBean_SimpleModel`. Furthermore, we need to specify the namespace of the `SimpleModel`, so a full example of using a Model with RedBean with Composer is as follows:

```
use \RedBeanPHP\R;

class Model_User extends \RedBeanPHP\SimpleModel
{
    ...
}
```

Notice that we also need to add the `use \RedBeanPHP\R` statement so that we can use the `R::` shortcut within the Model.

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

[](#quick-example)

How we store a book object with RedBeanPHP:

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

Yep, it's that simple.

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

[](#more-information)

For more information about RedBeanPHP please consult the RedBeanPHP website:

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/4cd3a3fc4ffd402ba6f791cffd59a3dafea7a97531b62ff22ec2fe48decd57df?d=identicon)[bilalahmad-tkxel](/maintainers/bilalahmad-tkxel)

---

Top Contributors

[![bilalahmad-tkxel](https://avatars.githubusercontent.com/u/1038327?v=4)](https://github.com/bilalahmad-tkxel "bilalahmad-tkxel (4 commits)")

### Embed Badge

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

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

###  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)
