daviddeutsch/redbean-instance

Instead of using the RedBean facade, use an instance of it.

dev-master 2014-01-01 17:47 UTC

This package is not auto-updated.

Last update: 2024-04-27 13:05:34 UTC


README

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