Registry / orm / gabordemooij-redbean

gabordemooij-redbean

JSON →
library5.7.6phppackagistunverified

RedBeanPHP ORM is a lightweight, zero-configuration ORM for PHP.

composer require gabordemooij/redbean
INSTALL
IMPORT
SIG · GABORDEMOOIJ-REDBE
G
gabordemooij-redbean
ormphpv5.7.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

R
✓ use RedBeanPHP\R;

Set up a database connection and store a new bean.

use RedBeanPHP\R; R::setup('mysql:host=localhost;dbname=mydb', 'user', 'pass'); $bean = R::dispense('book'); $bean->title = 'My Book'; $id = R::store($bean);
Debug
Known issues
gotchaRedBeanPHP uses a fluid schema by default, which can lead to unexpected database changes in production.
fix
Set R::freeze(true) in production to prevent schema modifications.
affects: >=5.0.0
Upgrade
Version history
5.7.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
Resources
gabordemooij-redbean — pip install gabordemooij-redbean · libregistry