Red Bean PHP

Produits
2017-12-21 11:31:25
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)
Red Bean PHP
Site webhttp://redbeanphp.com
Github / Bitbucket / Sourceforgehttps://github.com/gabordemooij/redbean
LicenceNew BSD / GPL
Dernière version4.3.2
How schema is defined?Automatically discovered on the fly.
Code generation
Can be used in Any FrameworkOui
Automated Cache
Anti-patterns (purposely included)
Audience
Dependencies
Simplicité0 aucune note
Enterprise Compliance0 aucune note
Minimum PHP Version
Basic Features
PDO Support
Transparent support for NoSQLNon Build around plain queries.
How to invoke db-vendor-specific extensions?- Can add SQL code chunks.
Array as a persistenceNon
RestAPI as a persistenceNon
JSON string as a persistenceNon
Same model, multiple persistences
Basic Single-record operations (C,R,U,D)
Table Name MappingNon mapping no longer supported.
Field Name MappingNon mapping no longer supported.
Map Entity to SubQueryNon
Map property to expressionNon
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 criteriaNon
Soft-deleteNon
Domain Model CriteriaNon
Expression-based conditionNon
Criteria Compliance (new record must match condition)Non
Dynamic criteriaNon
Query Building (Convert Model into Query object for further SQL tweaking)
Convert Model into Query ObjectNon
Raw expressionOui
Nested/Composite Queries/ExpressionsNon
Reference domain-model field in queryNon
field, where, order, limitNon
options, rollup, partition- not sure.
UPDATE, DELETE, INSERT query buildingNon
REPLACE, TRUNCATE- wipe(),
SHOW, DESCRIBE, CALL- Automatic schema alter / discovery.
ALTER, CREATE query buildingNon
User-defined query templateNon
full support for OR conditionsNon only raw query
Use Domain logic in multi-record updateNon
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 ColumnOui
Iterator
Bypass persistence mapping
Loading and Saving individual records
Load by IDOui
Load by other fieldNon
Read-only ModelsNon
Model without primary keyNon
Specify fields to loadNon
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 fieldsNon
Extend model, add Join (Disjoined SubTypes)Non
Extend model change tableNon
Relations/References (One model can relate to another model. NOT A TABLE JOIN)
Model can define relation to other ModelOui
One-to-ManyOui
One-to-many traversal strategypre-fetch and store objects in an array.
Lazy/Eager-loadingOui
One-to-OneOui
Many-to-Many
Deep Many-to-Many traversal.- only with to-one references. Executes multiple queries.
Cross-Persistence traversalNon
Cross-persistence joins, aggregation, reporting
Multi-persistence joinNon
UNION existing modelsNon
Domain-model AggregationNon
Model to Model joinNon
Multi-persistence UNIONNon
Behaviours / Hooks
Before/After operation
Override standard C,R,U,D operations
Persistence-specific hooks (to modify Query)
User-defined hooks
Auditing
Global AuditingNon
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 extensionsNon
API extensions
J'aime 0
  • 2016-10-19 01:38:35
    2017-12-21 11:31:25
  • Produits
    English
  • Publique
    Publique
  • Creative Commons License CC-BY-SA 3.0 / GNU FDL

Commentaires

Pas de commentaires pour l'instant. Soyez le premier à donner votre avis.

Laisser un commentaire

Créer des tableaux comparatifs ou listes sur tout !

C'est gratuit et rapide de créer des tableaux originaux

Créer un tableau