PHP ORM

Open-source PHP projects categorized as ORM

Top 23 PHP ORM Projects

  • CakePHP

    CakePHP: The Rapid Development Framework for PHP - Official Repository

    Project mention: CakePHP 5.1.0 Released | news.ycombinator.com | 2024-09-20
  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • laravel-mongodb

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

    Project mention: MongoDB Laravel Integration Now Officially Supported! | /r/mongodb | 2023-11-10

    I am excited to share that MongoDB has taken over development of the community-driven MongoDB integration for Laravel framework! This means you can expect regular updates with improvements to the functionality, bug fixes, and compatibility with most recent Laravel and MongoDB releases.

  • Propel

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

  • 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) {

  • Doctrine2 Behaviors

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

  • one

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

  • Opulence

    A simple, secure, and scalable PHP application framework

  • SaaSHub

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

    SaaSHub logo
  • Ubiquity

    Ubiquity framework

  • DoctrineJsonFunctions

    Doctrine DQL functions for SQL JSON data type

  • lessql

    LessQL: A lightweight and performant PHP ORM alternative

  • auditor-bundle

    The missing audit log library

  • ATK Data

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

  • core

    All of the required core code (by berlindb)

  • auditor

    auditor, the missing audit log library (by DamienHarper)

  • laravel-eloquent-case

    CASE statement support for Laravel Query Builder.

  • wordpress-interop

    Interoperability library to work with WordPress database in third party apps

    Project mention: Corcel – Use WordPress backend with Laravel or any PHP application | news.ycombinator.com | 2024-06-26

    There is also wordpress-interop on the doctrine side: https://github.com/williarin/wordpress-interop

  • Corma

    Convention-based Object-Relational Mapper

  • arca-orm

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

  • 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

  • tina4-php

    Tina4 PHP composer repository

  • framework

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

  • harmony

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

  • partitionable

    Partitionable associations for the CakePHP ORM, allowing for basic limiting per group.

  • 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

  • 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
  • for all those who struggle with database connection, i found a project which lets you connect with one single function, its pretty cool you should give it a try..

    2 projects | /r/programming | 5 Jun 2022
  • What PHP book would you most like to see written?

    5 projects | /r/PHP | 31 May 2022
  • Just release my first open source PHP ORM based on Doctrine DB this might be really useful in prototyping your next web project

    1 project | /r/webdev | 30 May 2022
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 4 Nov 2024
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. 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,679
2 laravel-mongodb 7,013
3 Propel 1,264
4 Cycle ORM 1,227
5 Doctrine2 Behaviors 916
6 one 886
7 Opulence 731
8 Ubiquity 692
9 DoctrineJsonFunctions 535
10 lessql 413
11 auditor-bundle 394
12 ATK Data 273
13 core 255
14 auditor 162
15 laravel-eloquent-case 112
16 wordpress-interop 62
17 Corma 32
18 arca-orm 32
19 laravel-cycle-orm-adapter 24
20 tina4-php 20
21 framework 18
22 harmony 17
23 partitionable 16

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

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