Red Bean PHP
J'aime 0
RedBeanPHP is an easy to use ORM for PHP. It's a Zero Config ORM
lib that 'automagically' builds your database schema.
Nom  | Red Bean PHP | 
|---|---|
| Site web | redbeanphp.com | 
| Github / Bitbucket / Sourceforge | github.com/... | 
| Licence | New BSD / GPL | 
| Dernière version | 4.3.2 | 
| How schema is defined? | Automatically discovered on the fly. | 
| Code generation | |
| Can be used in Any Framework | Oui | 
| Automated Cache | |
| Anti-patterns (purposely included) | |
| Audience | |
| Dependencies | |
| Simplicité |  aucune note  | 
| Enterprise Compliance |  aucune note  | 
| Minimum PHP Version | |
| Basic Features | |
| PDO Support | |
| Transparent support for NoSQL | Non Build around plain queries. | 
| How to invoke db-vendor-specific extensions? | - Can add SQL code chunks. | 
| Array as a persistence | Non | 
| RestAPI as a persistence | Non | 
| JSON string as a persistence | Non | 
| Same model, multiple persistences | |
| Basic Single-record operations (C,R,U,D) | |
| Table Name Mapping | Non mapping no longer supported. | 
| Field Name Mapping | Non mapping no longer supported. | 
| Map Entity to SubQuery | Non | 
| Map property to expression | Non | 
| Map native types (DateTime) | Oui | 
| User-defined types (e.g. "23 USD") | |
| Map field of related Entity ('currency' = currency_id->Model Currency.name) | Non | 
| Map field to sub-query on related entity (Client.balance = Client->orders->sum(total)) | Non | 
| Entity to join multiple tables (adding new record populates both tables) | Non | 
| Criteria, Scope, Conditions (Model will refuse to work with records that does not match criteria) | |
| Support model-level criteria | Non | 
| Soft-delete | Non | 
| Domain Model Criteria | Non | 
| Expression-based condition | Non | 
| Criteria Compliance (new record must match condition) | Non | 
| Dynamic criteria | Non | 
| Query Building (Convert Model into Query object for further SQL tweaking) | |
| Convert Model into Query Object | Non | 
| Raw expression | Oui | 
| Nested/Composite Queries/Expressions | Non | 
| Reference domain-model field in query | Non | 
| field, where, order, limit | Non | 
| options, rollup, partition | - not sure. | 
| UPDATE, DELETE, INSERT query building | Non | 
| REPLACE, TRUNCATE | - wipe(), | 
| SHOW, DESCRIBE, CALL | - Automatic schema alter / discovery. | 
| ALTER, CREATE query building | Non | 
| User-defined query template | Non | 
| full support for OR conditions | Non only raw query | 
| Use Domain logic in multi-record update | Non | 
| Data Fetching (different ways to retrieve data from database) | |
| Get All Data (2x array) | Oui 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 Column | Oui | 
| Iterator | |
| Bypass persistence mapping | |
| Loading and Saving individual records | |
| Load by ID | Oui | 
| Load by other field | Non | 
| Read-only Models | Non | 
| Model without primary key | Non | 
| Specify fields to load | Non | 
| 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) | Non | 
| Admin extends User, adds accessible fields | Non | 
| Extend model, add Join (Disjoined SubTypes) | Non | 
| Extend model change table | Non | 
| Relations/References (One model can relate to another model. NOT A TABLE JOIN) | |
| Model can define relation to other Model | Oui | 
| One-to-Many | Oui | 
| One-to-many traversal strategy | pre-fetch and store objects in an array. | 
| Lazy/Eager-loading | Oui | 
| One-to-One | Oui | 
| Many-to-Many | |
| Deep Many-to-Many traversal. | - only with to-one references. Executes multiple queries. | 
| Cross-Persistence traversal | Non | 
| Cross-persistence joins, aggregation, reporting | |
| Multi-persistence join | Non | 
| UNION existing models | Non | 
| Domain-model Aggregation | Non | 
| Model to Model join | Non | 
| Multi-persistence UNION | Non | 
| Behaviours / Hooks | |
| Before/After operation | |
| Override standard C,R,U,D operations | |
| Persistence-specific hooks (to modify Query) | |
| User-defined hooks | |
| Auditing | |
| Global Auditing | Non | 
| 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 extensions | Non | 
| API extensions | 
Avis utilisateurs et commentaires