library redbean-instance
Instead of using the RedBean facade, use an instance of it.
daviddeutsch/redbean-instance
Instead of using the RedBean facade, use an instance of it.
- Wednesday, January 1, 2014
- by daviddeutsch
- Repository
- 2 Watchers
- 2 Stars
- 10 Installations
- PHP
- 0 Dependents
- 3 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
RedBean Instance
In a number of situations, a monolithic facade is not desirable. You need Instances., (*1)
Here, have an instance., (*2)
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);
dev-master
9999999-dev
Instead of using the RedBean facade, use an instance of it.
Sources
Download
BSD
The Requires