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.
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.
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.
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.
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.
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.
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.
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.