Compare Sizes
Register
English Français Español

Red Bean PHP

0
RedBeanPHP is an easy to use ORM for PHP. It's a Zero Config ORM lib that 'automagically' builds your database schema.
PHP Data Access Libraries (ORM, ActiveRecord, Persistence)
Name
Red Bean PHP
Webseiteredbeanphp.com
Github / Bitbucket / Sourceforgegithub.com/...
LicenseNew BSD / GPL
Latest version4.3.2
How schema is defined?Automatically discovered on the fly.
Code generation
Can be used in Any FrameworkJa
Automated Cache
Anti-patterns (purposely included)
Audience
Dependencies
Simplicity
no rating
Enterprise Compliance
no rating
Minimum PHP Version
Basic Features
PDO Support
Transparent support for NoSQLNein Build around plain queries.
How to invoke db-vendor-specific extensions?- Can add SQL code chunks.
Array as a persistenceNein
RestAPI as a persistenceNein
JSON string as a persistenceNein
Same model, multiple persistences
Basic Single-record operations (C,R,U,D)
Table Name MappingNein mapping no longer supported.
Field Name MappingNein mapping no longer supported.
Map Entity to SubQueryNein
Map property to expressionNein
Map native types (DateTime)Ja
User-defined types (e.g. "23 USD")
Map field of related Entity ('currency' = currency_id->Model Currency.name)Nein
Map field to sub-query on related entity (Client.balance = Client->orders->sum(total))Nein
Entity to join multiple tables (adding new record populates both tables)Nein
Criteria, Scope, Conditions (Model will refuse to work with records that does not match criteria)
Support model-level criteriaNein
Soft-deleteNein
Domain Model CriteriaNein
Expression-based conditionNein
Criteria Compliance (new record must match condition)Nein
Dynamic criteriaNein
Query Building (Convert Model into Query object for further SQL tweaking)
Convert Model into Query ObjectNein
Raw expressionJa
Nested/Composite Queries/ExpressionsNein
Reference domain-model field in queryNein
field, where, order, limitNein
options, rollup, partition- not sure.
UPDATE, DELETE, INSERT query buildingNein
REPLACE, TRUNCATE- wipe(),
SHOW, DESCRIBE, CALL- Automatic schema alter / discovery.
ALTER, CREATE query buildingNein
User-defined query templateNein
full support for OR conditionsNein only raw query
Use Domain logic in multi-record updateNein
Data Fetching (different ways to retrieve data from database)
Get All Data (2x array)Ja exportAll()
Associative Array (id=>value)
Select only required fields
Typecasting (e.g. DateTime)
Import (multiple records)
Respect domain model mapping (and criteria)
Single row
Single Value
Single ColumnJa
Iterator
Bypass persistence mapping
Loading and Saving individual records
Load by IDJa
Load by other fieldNein
Read-only ModelsNein
Model without primary keyNein
Specify fields to loadNein
Save only sends dirty fields- (there is Dirty support, so I assuming it is supported)
Guarded / Fillable properties
Object Hierarchy Model
Admin extends User, adds criteria (is_admin=1)Nein
Admin extends User, adds accessible fieldsNein
Extend model, add Join (Disjoined SubTypes)Nein
Extend model change tableNein
Relations/References (One model can relate to another model. NOT A TABLE JOIN)
Model can define relation to other ModelJa
One-to-ManyJa
One-to-many traversal strategypre-fetch and store objects in an array.
Lazy/Eager-loadingJa
One-to-OneJa
Many-to-Many
Deep Many-to-Many traversal.- only with to-one references. Executes multiple queries.
Cross-Persistence traversalNein
Cross-persistence joins, aggregation, reporting
Multi-persistence joinNein
UNION existing modelsNein
Domain-model AggregationNein
Model to Model joinNein
Multi-persistence UNIONNein
Behaviours / Hooks
Before/After operation
Override standard C,R,U,D operations
Persistence-specific hooks (to modify Query)
User-defined hooks
Auditing
Global AuditingNein
Store old/new field values
Revert action (undo) and replay (redo)
Reactive actions
Store log in any persistence
Override, Add fields to audit log
Custom events
Access to record-specific history
Date of creation, modification
User/IP creation, modification
Store incremental revisions
Integration
Field meta-information provided
UI extensionsNein
API extensions
Products
English
Public
Public
2017-12-21 11:31:25
View changes

User reviews and comments

No comments yet. Be the first to leave your review.