PHPackages                             neemzy/redbean-service-provider - 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. neemzy/redbean-service-provider

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

neemzy/redbean-service-provider
===============================

RedBean ORM service provider for Silex micro-framework

51241PHP

Since May 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/neemzy/redbean-service-provider)[ Packagist](https://packagist.org/packages/neemzy/redbean-service-provider)[ RSS](/packages/neemzy-redbean-service-provider/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (1)

RedBean service provider
========================

[](#redbean-service-provider)

RedBean ORM service provider for Silex micro-framework

Usage
-----

[](#usage)

```
use Neemzy\Silex\Provider\RedBean\ServiceProvider as RedBeanServiceProvider;

$app = new Silex\Application();

$app->register(
    new RedBeanServiceProvider(),
    [
        'redbean.database' => $database,
        'redbean.username' => $username,
        'redbean.password' => $password,
        'redbean.namespace' => $namespace // optional
    ]
);

// RedBean is now available as an instance in $app['redbean']
$app['redbean']->freeze(true);

$app->run();
```

About
-----

[](#about)

As of now, this project is mainly a dumb wrapper which aims to make RedBean available as an instance rather than a static class (which can come in handy for testing purposes). All calls to this instance are identically redispatched to the actual RedBean. It also eases access to the app instance within your models (see below). Feel free to contribute to this project if you have any idea to make it better !

Models
------

[](#models)

The provider ships with a `Model` class which extends `RedBean_SimpleModel`, which you can inherit from instead of the latter. Doing so makes the provider `box()` every requested bean and bind the app to the resulting model instance. This means two things :

- You are now able to access your Silex app from inside your models' classes, by requesting `$this->app`
- Calling any method that previously returned an instance of `RedBean_OODBBean` now directly returns a proper model instance

If you specified the `redbean.namespace` parameter, your models' class namespace will also be set up without having to declare a `REDBEAN_MODEL_PREFIX` constant. Otherwise, model classes will not have any prefix (not even the default `Model_`).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/fe93bd0e4a53d8e1a9ed853202416277320675c57f34c4f5961019cb8bb0095d?d=identicon)[neemzy](/maintainers/neemzy)

---

Top Contributors

[![neemzy](https://avatars.githubusercontent.com/u/1804389?v=4)](https://github.com/neemzy "neemzy (9 commits)")

### Embed Badge

![Health badge](/badges/neemzy-redbean-service-provider/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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