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
·

Active Record ORMs for PHP

Ranking updated Jun 30, 2026

For an active-record ORM for PHP, the strongest matches are mongodb/laravel-mongodb (This repository brings MongoDB support to Laravel's Eloquent, giving), yiisoft/yii2 (Yii2 ships with a mature Active Record ORM that) and jenssegers/laravel-mongodb (This MongoDB Eloquent ORM for Laravel implements the Active). illuminate/database is also worth a look. Each is ranked by relevance to your query, popularity and recent activity.

PHP libraries that implement the active record pattern for database interaction and object relational mapping.

Active Record ORMs for PHP

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 repository brings MongoDB support to Laravel's Eloquent, giving you Active Record model mapping, CRUD methods, query building, associations, and callbacks—exactly what you'd expect from a PHP Active Record ORM, though tailored for NoSQL rather than relational databases.

    PHPActive Record MappersActive-Record ORMsFluent Query Builders
    View on GitHub↗7,075
  • yiisoft/yii2yiisoft avatar

    yiisoft/yii2

    14,298View on GitHub↗

    Yii2 is a professional PHP web framework designed for developing high-performance, scalable enterprise web applications. It utilizes a Model-View-Controller architecture to separate data logic, user interfaces, and request handling, ensuring maintainability for large-scale projects. The framework includes a built-in PHP code generator that automates the creation of boilerplate controllers and models by scanning database schemas. It provides an Active Record object-relational mapping system where classes represent tables and instances represent rows to manage data persistence. Additional capa

    Yii2 ships with a mature Active Record ORM that maps tables to classes, provides CRUD methods, migration support, a query builder, associations (hasMany, belongsTo), validation/callbacks, and lazy/eager loading, so it squarely delivers everything the visitor needs even though it comes inside a full web framework.

    PHPActive-Record ORMs
    View on GitHub↗14,298
  • 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 MongoDB Eloquent ORM for Laravel implements the Active Record pattern with model mapping, CRUD, and query builder features, making it a valid ORM for PHP, though its NoSQL focus means it lacks relational table-mapping and traditional migration support.

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

    illuminate/database

    2,766View on GitHub↗

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

    Illuminate Database provides Eloquent, a full-featured Active Record ORM for PHP with table mapping, CRUD, query builder, migrations, associations, and lazy/eager loading—perfectly matching your requirement for an ORM implementing the Active Record pattern.

    PHPDatabase Interaction
    View on GitHub↗2,766

Related searches

  • an object relational mapper for PHP
  • an ORM and query builder for Go
  • an open source ORM for relational databases
  • ORMs, query builders and data access
  • an ORM for Go that handles migrations
  • an object relational mapping library for Dart
  • an object relational mapping library for Java
  • an object relational mapper for C#