All Projects → cycle → Orm

cycle / Orm

Licence: mit
PHP DataMapper, ORM

Projects that are alternatives of or similar to Orm

Awesome Python Models
A curated list of awesome Python libraries, which implement models, schemas, serializers/deserializers, ODM's/ORM's, Active Records or similar patterns.
Stars: ✭ 124 (-85.01%)
Mutual labels:  orm, mapper
Piccolo
A fast, user friendly ORM and query builder which supports asyncio.
Stars: ✭ 219 (-73.52%)
Mutual labels:  orm, query-builder
Codeigniter Model
CodeIgniter 3 Active Record (ORM) Standard Model with Laravel Eloquent & Yii2 AR like
Stars: ✭ 124 (-85.01%)
Mutual labels:  orm, query-builder
Evolutility Server Node
Model-driven REST or GraphQL backend for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
Stars: ✭ 84 (-89.84%)
Mutual labels:  orm, query-builder
Elasticsearch
The missing elasticsearch ORM for Laravel, Lumen and Native php applications
Stars: ✭ 375 (-54.66%)
Mutual labels:  orm, query-builder
Sql
A delightful SQL ORM ☺️
Stars: ✭ 89 (-89.24%)
Mutual labels:  orm, query-builder
Ormi
A Light-ORM for accesing WMI
Stars: ✭ 176 (-78.72%)
Mutual labels:  orm, mapper
Excelmapper
Map POCO objects to Excel files
Stars: ✭ 166 (-79.93%)
Mutual labels:  orm, mapper
Simpleflatmapper
Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
Stars: ✭ 370 (-55.26%)
Mutual labels:  orm, mapper
Npoi.mapper
Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.
Stars: ✭ 348 (-57.92%)
Mutual labels:  orm, mapper
Repodb
A hybrid ORM library for .NET.
Stars: ✭ 1,223 (+47.88%)
Mutual labels:  orm, mapper
Gocqlx
All-In-One: CQL query builder, ORM and migration tool
Stars: ✭ 512 (-38.09%)
Mutual labels:  orm, query-builder
Php Es Mapper
An elasticsearch simple mapping ORM for php
Stars: ✭ 25 (-96.98%)
Mutual labels:  orm, query-builder
Ship Hold
data access framework for Postgresql on nodejs
Stars: ✭ 110 (-86.7%)
Mutual labels:  orm, query-builder
gobatis
golang mybatis, 简单便捷
Stars: ✭ 46 (-94.44%)
Mutual labels:  orm, mapper
Android Orma
An ORM for Android with type-safety and painless smart migrations
Stars: ✭ 442 (-46.55%)
Mutual labels:  orm, query-builder
Diesel
A safe, extensible ORM and Query Builder for Rust
Stars: ✭ 7,702 (+831.32%)
Mutual labels:  orm, query-builder
Nano Sql
Universal database layer for the client, server & mobile devices. It's like Lego for databases.
Stars: ✭ 717 (-13.3%)
Mutual labels:  orm
Xorm
Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle, Moved to https://gitea.com/xorm/xorm
Stars: ✭ 6,464 (+681.62%)
Mutual labels:  orm
Orm
A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen
Stars: ✭ 712 (-13.91%)
Mutual labels:  orm

Cycle ORM

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

Cycle ORM

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, powerful query builder and supports dynamic mapping schema. The engine can work with plain PHP objects, support annotation declarations, and proxies via extensions.

Website and Documentation | Comparison with Eloquent and Doctrine

Features:

  • clean and fast Data Mapper
  • ORM with has-one, has-many, many-through-many and polymorphic relations
  • Plain Old PHP objects, ActiveRecord, Custom 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
  • hackable: persist strategies, mappers, relations, transactions
  • works with directed graphs and cyclic graphs using command chains
  • designed to work in long-running applications: immutable service core, disposable UoW
  • supports MySQL, MariaDB, PostgresSQL, SQLServer, SQLite
  • schema scaffolding, introspection, and migrations
  • supports global query constrains, UUIDs as PK, soft deletes, auto timestamps
  • 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

Example:

// load all active users and pre-load their paid orders sorted from newest to olders
// the pre-load will be complete using LEFT JOIN
$users = $orm->getRepository(User::class)
    ->select()
    ->where('active', true)
    ->load('orders', [
        'method' => Select::SINGLE_QUERY,
        'load'   => function($q) {
            $q->where('paid', true)->orderBy('timeCreated', 'DESC');
        }
    ])
    ->fetchAll();

$t = new Transaction($orm);

foreach($users as $user) {
    $t->persist($user);
}

$t->run();

License:

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].