daviddeutsch / redbean-prefix
For when you absolutely, positively need prefixes in RedBeanPHP
Installs: 28
Dependents: 1
Suggesters: 2
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/daviddeutsch/redbean-prefix
Requires
- gabordemooij/redbean: >=3.2,<4.0
Suggests
- daviddeutsch/redbean-instance: Let's you have multiple RedBean instances running alongside eachother.
This package is not auto-updated.
Last update: 2025-10-11 19:49:07 UTC
README
In a perfect world, we wouldn't have to do this. Nevertheless, we cannot help it, sometimes.
This is a RedBean plugin that automatically injects prefixes into your table names.
Usage
// Include or autoload the files in this library R::ext( 'prefix', array('RedBean_Prefix', 'prefix') ); R::prefix('my_prefix_'); // If you want to inject it into another instance of RB $r2db2 = R::instance(); $r2db2::prefix('my_other_db_', $r2db2);