A shorthand library for RedBeanPHP

dev-master 2013-12-27 14:28 UTC

This package is not auto-updated.

Last update: 2024-04-27 13:15:21 UTC


README

A shorthand library for RedBeanPHP

CAUTION: Large parts of this are untested and I'm making stuff up as I go along

An Extended Facade

$type = R::_( 'type' ); // Dispense beans

$type = R::_( 'type', $id ); // Load beans

R::_( $bean ); // Store beans

Learn more about the Facade

A short, fluid helper for finding beans

/**
 * Search for a project
 */
$project = R::$x->project->name($name)->find();

/**
 * Actually, if you can't find one, make one with that data
 */
$project = R::$x->project->name($name)->find(true);

Learn more about the Find Helper