PHP ORM

Open-source PHP projects categorized as ORM

Top 23 PHP ORM Projects

  1. CakePHP

    CakePHP: The Rapid Development Framework for PHP - Official Repository

    Project mention: CakePHP 5.1.0 Released | news.ycombinator.com | 2024-09-20
  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. laravel-mongodb

    A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

    Project mention: Laravel Migration With Schema Validation in MongoDB | dev.to | 2025-06-20

    The freshly created Laravel project comes with configurations for relational databases out of the box. We further need to configure it to work with MongoDB by installing the mongodb/laravel-mongodb package. Install it by running the command below in your terminal in the project directory.

  4. Propel

    Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP

  5. Cycle ORM

    PHP DataMapper, ORM (by cycle)

    Project mention: Cash: A small jQuery alternative for modern browsers | news.ycombinator.com | 2024-11-02

    Thanks. It's a small custom framework built from libraries, some custom, some third party.

    - File based HTTP router running on top of https://frankenphp.dev/

    - ORM/SQL with: https://github.com/cycle/orm but this is preference. Anything works. From SQL builders to ORMs.

    I'll try to explain their form handling:

    Forms almost always POST to their own GET URL.

    If you GET /user/save you'll get back HTML and `` to build the form.<p>If you POST /user/save you're expected to pass the entire form data PLUS an "operation" parameter which is used by the backend to decide what should be done and returned.<p>For example if user clicks [add new user] button, the "operation" parameter has value of "btnNewUser.click".<p>Why pass operation parameter? Because business forms can have more than just a [submit] button.<p>For example, there might be a datagrid filter value being changed (operation: "txtFilter.change"), or perhaps a dropdown search to select a city name from a large list (operation: "textCitySearch.change"), it can be a postal code to address lookup (operation: "txtPostalCode.change"), etc.<p>On the backend, the pseudocode looks somewhat like this but it's cleaner/safer because of encapsulation, validation, error handling, data sanitization, model binding and csrf/xss protection:<p><pre><code> function user_save($operation) {

  6. mongodb-odm

    The Official PHP MongoDB ORM/ODM

    Project mention: Symfony and MongoDB: Our Commitment to a Stronger Integration | dev.to | 2025-06-09

    Thank you for building amazing things with Symfony and MongoDB! We're genuinely excited for what’s ahead. If you have suggestions, requests, or bug reports, please join us in the #doctrine channel on the Symfony Slack, or open an issue on Doctrine MongoDB ODM GitHub.

  7. Doctrine2 Behaviors

    Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior

  8. one

    A minimalist high-performance php framework that supports the [swoole | php-fpm] environment (by lizhichao)

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. Opulence

    A simple, secure, and scalable PHP application framework

  11. Ubiquity

    Ubiquity framework

  12. DoctrineJsonFunctions

    Doctrine DQL functions for SQL JSON data type

  13. auditor-bundle

    The missing audit log library

  14. lessql

    LessQL: A lightweight and performant PHP ORM alternative

  15. ATK Data

    Data Access PHP Framework for SQL & high-latency databases (by atk4)

    Project mention: Hello Dev.to | dev.to | 2025-07-07

    Agile Data (https://github.com/atk4/data) implements an approach of DataSet abstractions - implemented in PHP. While it is similar to ORM in syntax - it operates on an entirely different level, allowing you to dynamically build multi-table queries, abstract away expression logic, and introduce extensions (such as soft-delete). All of that integrates into UI directly) making ATK a "low-code" framework that makes you write very little code.

  16. core

    All of the required core code (by berlindb)

  17. auditor

    auditor, the missing audit log library (by DamienHarper)

  18. laravel-eloquent-case

    CASE statement support for Laravel Query Builder.

  19. wordpress-interop

    Interoperability library to work with WordPress database in third party apps

  20. arca-orm

    Low code , Zero Configuration ORM that creates models, config, database and tables on the fly.

  21. Corma

    Convention-based Object-Relational Mapper

  22. laravel-cycle-orm-adapter

    🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

    Project mention: Laravel Config Problem: Is It Time for a Revolution? | dev.to | 2024-07-17

    I use this approach in my wayofdev/laravel-cycle-orm-adapter package. The configuration file can be viewed here: config/cycle.php

  23. tina4-php

    Tina4 PHP composer repository

  24. framework

    PHP Framework providing ActiveRecord models and out of the box CRUD controllers with versioning and ORM support (by Divergence)

  25. harmony

    Harmony Modern Slim Boilerplate with Tinker and Eloquent ORM | Read Documentation in (by harmony-betta)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP ORM discussion

Log in or Post with

PHP ORM related posts

  • Laravel Migration With Schema Validation in MongoDB

    1 project | dev.to | 20 Jun 2025
  • Symfony and MongoDB: Our Commitment to a Stronger Integration

    1 project | dev.to | 9 Jun 2025
  • Building a Multi-Step Form with Laravel, Livewire, and MongoDB

    2 projects | dev.to | 25 Mar 2025
  • MongoDB Laravel Integration Now Officially Supported!

    1 project | /r/mongodb | 10 Nov 2023
  • [Symfony] - Dynamique database connection

    1 project | /r/PHPhelp | 21 Apr 2023
  • likelyhood of MongoDb composer package being maintained for 10x?

    1 project | /r/laravel | 28 Feb 2023
  • I like the PHP constant RAM characteristics under a load but struggle to find a semi-decent req/s PHP framework/library for API backends

    2 projects | /r/PHP | 3 Oct 2022
  • A note from our sponsor - Stream
    getstream.io | 15 Jul 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

What are some of the best open-source ORM projects in PHP? This list will help you:

# Project Stars
1 CakePHP 8,754
2 laravel-mongodb 7,083
3 Propel 1,270
4 Cycle ORM 1,254
5 mongodb-odm 1,097
6 Doctrine2 Behaviors 917
7 one 887
8 Opulence 728
9 Ubiquity 700
10 DoctrineJsonFunctions 569
11 auditor-bundle 425
12 lessql 408
13 ATK Data 277
14 core 257
15 auditor 172
16 laravel-eloquent-case 114
17 wordpress-interop 66
18 arca-orm 34
19 Corma 32
20 laravel-cycle-orm-adapter 27
21 tina4-php 20
22 framework 18
23 harmony 17

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that PHP is
the 14th most popular programming language
based on number of references?