awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

PHP ORM Libraries

Ranking updated Jul 13, 2026

For an object relational mapper for PHP, the strongest matches are mongodb/laravel-mongodb (This library provides an Active Record implementation for MongoDB), jenssegers/laravel-mongodb (This library provides an Active Record implementation and query) and laravel/framework (This is a full-stack web framework that includes Eloquent). doctrine/orm and illuminate/database round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “best php orm libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

PHP ORM Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • mongodb/laravel-mongodbmongodb avatar

    mongodb/laravel-mongodb

    7,075View on GitHub↗

    This project is a MongoDB database driver and object-relational mapper that brings MongoDB support to the Laravel Eloquent model and query builder. It provides a NoSQL model mapper that allows MongoDB collections to be mapped to object-oriented models using the Active Record pattern. The integration enables the use of a fluent query builder for constructing queries and aggregation pipelines without writing raw database syntax. It supports schema-less model integration, allowing applications to manage unstructured data while maintaining compatibility with standard object-oriented patterns. Th

    This library provides an Active Record implementation for MongoDB within the Laravel ecosystem, serving as a specialized ORM for document-based data rather than traditional relational databases.

    PHPActive-Record ORMsActive Record MappersFluent Query Builders
    View on GitHub↗7,075
  • jenssegers/laravel-mongodbjenssegers avatar

    jenssegers/laravel-mongodb

    7,075View on GitHub↗

    This project is a MongoDB Eloquent ORM and NoSQL query builder for the Laravel framework. It provides an active record implementation that maps MongoDB collections and documents to programmable models for data manipulation. The system enables schemaless data management, allowing applications to handle dynamic data structures without the need for rigid database migrations or predefined tables. It integrates MongoDB into Laravel applications to store and retrieve flexible document data using standard PHP patterns. The library covers document store querying and Eloquent model mapping, utilizing

    This library provides an Active Record implementation and query builder specifically for integrating MongoDB with Laravel, serving as a specialized ORM for NoSQL document stores rather than traditional relational databases.

    PHPActive-Record ORMsFluent Query Builders
    View on GitHub↗7,075
  • laravel/frameworklaravel avatar

    laravel/framework

    34,774View on GitHub↗

    This project is a full-stack web framework that provides a comprehensive environment for building server-side applications. It utilizes a model-view-controller architecture to separate application logic into distinct layers for data management, user interface presentation, and request handling. The platform manages the entire request-response lifecycle, including security, session handling, and background task processing, while using an object-relational mapping layer to translate database records into programmable objects. The framework distinguishes itself through a central service containe

    This is a full-stack web framework that includes Eloquent, a robust ORM that implements the Active Record pattern, query building, and database migrations, though it is part of a larger ecosystem rather than a standalone library.

    PHPDatabase MigrationsQuery Builders
    View on GitHub↗34,774
  • doctrine/ormdoctrine avatar

    doctrine/orm

    10,172View on GitHub↗

    Doctrine ORM is a PHP object-relational mapper that connects application objects to relational database tables. It uses the data mapper and identity map patterns to decouple the in-memory object model from the database schema, allowing developers to manage data persistence without writing manual SQL. The project features a dedicated object-oriented query language and programmatic builder for retrieving data based on entities rather than tables. It implements a unit-of-work system to track object changes during a request and synchronize them via atomic transactions. The capability surface inc

    Doctrine is the industry-standard PHP ORM that implements the Data Mapper pattern, provides a powerful query builder, and includes robust support for migrations and complex relationship mapping.

    PHPDatabase Schema Migrations
    View on GitHub↗10,172
  • illuminate/databaseilluminate avatar

    illuminate/database

    2,766View on GitHub↗

    READ ONLY Subtree split of the Illuminate Database component (see laravel/framework)

    This is the standalone database component from the Laravel framework, providing a robust query builder, active record implementation, and migration support that functions as a comprehensive ORM for PHP applications.

    PHPDatabase Interaction
    View on GitHub↗2,766
  • cycle/ormcycle avatar

    cycle/orm

    1,328View on GitHub↗

    PHP DataMapper, ORM

    Cycle ORM is a powerful Data Mapper implementation for PHP that provides robust relationship mapping, a fluent query builder, and database schema management, making it a comprehensive tool for database interaction.

    PHPDatabase Interaction
    View on GitHub↗1,328
  • cakephp/ormcakephp avatar

    cakephp/orm

    149View on GitHub↗

    READ-ONLY A flexible, lightweight and powerful Object-Relational Mapper for PHP, implemented using the DataMapper pattern. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

    This library provides a robust implementation of the Data Mapper pattern for PHP, offering comprehensive relationship mapping and query building capabilities as a standalone component of the CakePHP framework.

    PHPDatabase Interaction
    View on GitHub↗149
  • db-migrate/node-db-migratedb-migrate avatar

    db-migrate/node-db-migrate

    2,343View on GitHub↗

    This project is a database migration framework designed to manage and execute versioned schema changes across multiple relational and document-oriented database systems. It functions as a utility for tracking and applying structural modifications through sequential migration scripts, ensuring that database schemas remain consistent across development, testing, and production environments. The framework utilizes a driver-based abstraction layer that decouples migration logic from specific database engines, allowing for a unified interface when performing schema operations. It maintains state t

    This project is a database migration tool for the Node.js ecosystem rather than a PHP ORM library, making it a neighbouring utility rather than the database interaction framework you requested.

    JavaScriptDatabase MigrationsDatabase Schema Migrations
    View on GitHub↗2,343
  • golang-migrate/migrategolang-migrate avatar

    golang-migrate/migrate

    18,118View on GitHub↗

    This project is a command-line utility designed to manage database schema versioning and automate incremental schema updates. It functions as a version control system for database structures, ensuring consistency across environments by tracking applied migrations in a dedicated metadata table and executing scripts in a sequential, reliable manner. The tool distinguishes itself through a driver-based abstraction layer that supports a wide range of database engines, including various SQL and distributed cloud databases. It provides robust concurrency control through advisory locking, which prev

    This is a database migration and schema versioning tool, which is a single-aspect utility rather than a full-featured Object-Relational Mapping library for PHP.

    GoDatabase MigrationsSchema MigrationsDatabase Schema Migrations
    View on GitHub↗18,118
  • flyway/flywayflyway avatar

    flyway/flyway

    9,844View on GitHub↗

    Flyway is a database schema versioning tool and SQL migration orchestrator. It applies version-controlled schema changes to relational databases using SQL scripts and Java Database Connectivity to ensure environments remain consistent and reproducible. The tool tracks applied migration scripts in a dedicated metadata table to determine which updates require execution. It supports the synchronization of schema versions across multiple different database engines and provides integration for build systems and application frameworks to automate updates during software release processes. Capabili

    This is a database migration and schema versioning tool rather than an ORM library, meaning it handles schema evolution but lacks the object-relational mapping, query building, and relationship management features required for database interaction.

    JavaDatabase MigrationsDatabase Schema Migrations
    View on GitHub↗9,844
  • amacneil/dbmateamacneil avatar

    amacneil/dbmate

    6,954View on GitHub↗

    Dbmate is a framework-agnostic SQL database migration tool used for tracking, applying, and rolling back schema changes to ensure consistent environments. It functions as a database schema versioning tool that manages updates independently of any specific application framework by relying on raw SQL and connection URLs. The project distinguishes itself by offering a container-based approach to database administration, allowing schema updates to be executed via Docker to avoid local binary installations. It also supports embedding migration scripts directly into the compiled binary to eliminate

    This is a standalone database migration tool rather than an ORM library, meaning it lacks the Active Record, Data Mapper, and relationship mapping features required for object-relational mapping.

    GoDatabase MigrationsDatabase Schema Migrations
    View on GitHub↗6,954
  • knex/knexknex avatar

    knex/knex

    20,300View on GitHub↗

    Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and a versioned schema migration tool. It enables programmatic database interaction across multiple SQL engines, including PostgreSQL, MySQL, SQLite3, SQL Server, CockroachDB, and Oracle. The project distinguishes itself through a fluent interface for constructing complex SQL statements and a dedicated framework for database seeding. It utilizes specialized dialects to translate generic query representations into database-specific syntax while maintaining a consistent API across

    This is a JavaScript-based query builder and migration tool, which does not provide the PHP-based ORM functionality required for your project.

    JavaScriptDatabase Query BuildersDatabase Schema MigrationsFluent Query Builders
    View on GitHub↗20,300
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
mongodb/laravel-mongodb7.1KPHPMITJun 10, 2026
jenssegers/laravel-mongodb7.1KPHPMITJun 10, 2026
laravel/framework34.8KPHPMITJun 16, 2026
doctrine/orm10.2KPHPMITJun 22, 2026
illuminate/database2.8KPHPMITJun 16, 2026
cycle/orm1.3KPHPMITJun 15, 2026
cakephp/orm149PHPNOASSERTIONJun 8, 2026
db-migrate/node-db-migrate2.3KJavaScriptNOASSERTIONAug 4, 2025
golang-migrate/migrate18.1KGootherDec 14, 2025
flyway/flyway9.8KJavaApache-2.0Jun 5, 2026

Related searches

  • an object relational mapping library for Java
  • an active-record ORM for PHP
  • an object relational mapper for C#
  • an object relational mapping library for Dart
  • an object relational mapping library for Kotlin
  • an object relational mapper for Rust
  • ORMs, query builders and data access
  • an ORM and query builder for Go