cycle/orm

DataMapper and ORM for long-running processes

Maintainers

Details

github.com/cycle/orm

Source

Issues

Installs: 2 630

Dependents: 6

Suggesters: 0

Stars: 201

Watchers: 12

Forks: 6

Open Issues: 0

v1.1.2 2019-06-10 09:06 UTC

README

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

Cycle is PHP DataMapper and ORM engine designed to work in long-running PHP applications (like RoadRunner). The ORM provides the hard separation between the entity objects and their persistent representation which allows you to use any type of data carrying models or define database schema on a fly without code generation.

Documentation (in-progress) | Comparison with Eloquent and Doctrine

Features:

  • ORM with has-one, has-many, many-thought-many and polymorphic relations
  • embedded entities, lazy/eager loaded embedded partials
  • bare PHP objects, ActiveRecord-like objects, same object type for all entities
  • same entity type for multiple repositories
  • query builder with automatic relation resolution
  • eager and lazy loading, proxies support, references support
  • runtime configuration with/without code-generation
  • column-to-field mapping, value objects support
  • single table inheritance
  • works with directed graphs and cyclic graphs using command chains
  • designed to work in long-running applications, immutable service core, reconnects
  • dirty state, sync exceptions do not break entity map state
  • supports MySQL, MariaDB, PostgresSQL, SQLServer, SQLite
  • supports global query constrains, UUIDs as PK, soft deletes, auto timestamps
  • supports custom persiters, disposable UoW, custom column types, FKs to non primary columns
  • compatible with Doctrine Collections 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 SpiralScout.