/redbean-instance

If you are juggling databases, a static Facade won't do. You need instances!

Primary LanguagePHP

RedBean Instance

In a number of situations, a monolithic facade is not desirable. You need Instances.

Here, have an instance.

Usage

// Include or autoload the files in this library

$db = new RedBean_Instance();

// All static method calls are regular method calls now
$project = $db->dispense('project');

$project->name = 'Hello';

$db->store($project);