cycle/orm

PHP DataMapper ORM and Data Modelling Engine

Maintainers

Details

github.com/cycle/orm

Source

Issues

Installs: 3 258

Dependents: 8

Suggesters: 0

Stars: 271

Watchers: 16

Forks: 9

Open Issues: 5

v1.1.8 2019-08-13 12:48 UTC

README

Latest Stable Version Build Status Scrutinizer Code Quality Codecov 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646973636f72642d636861742d6d6167656e74612e737667

Cycle is PHP DataMapper ORM and Data Modelling engine designed to safely work in classic and daemonized PHP applications (like RoadRunner). The ORM provides flexible configuration options to model datasets and support dynamic mapping schema at runtime. Engine can work with plain PHP objects, support annotation declarations and proxies via extensions.

Documentation | Comparison with Eloquent and Doctrine

Features:

  • ORM with has-one, has-many, many-thought-many and polymorphic relations
  • Plain Old PHP Objects or same entity type for multiple repositories
  • eager and lazy loading, query builder with multiple fetch strategies
  • embedded entities, lazy/eager loaded embedded partials
  • runtime configuration with/without code-generation
  • column-to-field mapping, single table inheritance, value objects support
  • custom persist strategies, dirty state, safe entity map
  • works with directed graphs and cyclic graphs using command chains
  • designed to work in long-running applications, immutable service core, reconnects
  • supports MySQL, MariaDB, PostgresSQL, SQLServer, SQLite
  • schema scaffolding and migrations
  • supports global query constrains, UUIDs as PK, soft deletes, auto timestamps
  • disposable UoW, custom column types, FKs to non primary columns
  • use with or without annotations, proxy classes and auto-migrations
  • compatible with Doctrine Collections, Doctrine Annotations and Zend Hydrator

Extensions:

Component Current Status
cycle/schema-builder Latest Stable Version Build Status Scrutinizer Code Quality Codecov
cycle/annotated Latest Stable Version Build Status Scrutinizer Code Quality Codecov
cycle/proxy-factory Latest Stable Version Build Status Scrutinizer Code Quality Codecov
cycle/migrations Latest Stable Version Build Status Scrutinizer Code Quality Codecov

License:

The MIT License (MIT). Please see LICENSE for more information. Maintained by Spiral Scout.