PHPackages                             ramadan/easy-model - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ramadan/easy-model

ActiveLibrary[Database &amp; ORM](/categories/database)

ramadan/easy-model
==================

A Laravel package for enjoyably managing database queries.

v1.1.8(1y ago)101.6kMITPHPPHP ^8.2

Since Oct 1Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mahmoudmohamedramadan/easy-model)[ Packagist](https://packagist.org/packages/ramadan/easy-model)[ Docs](https://github.com/mahmoudmohamedramadan/easy-model)[ Fund](https://buymeacoffee.com/mmramadan496)[ GitHub Sponsors](https://github.com/sponsors/mahmoudmohamedramadan)[ RSS](/packages/ramadan-easy-model/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (24)Used By (0)

Easy Model
==========

[](#easy-model)

[![Easy Model](https://raw.githubusercontent.com/mahmoudmohamedramadan/easy-model/refs/heads/main/assets/easy-model.png "Easy Model")](https://raw.githubusercontent.com/mahmoudmohamedramadan/easy-model/refs/heads/main/assets/easy-model.png)

[![License](https://camo.githubusercontent.com/9c8f3b56227f8504794aad5870a26f07d32a5b1c0fd0397cf22fa132ea5f19d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616d6164616e2f656173792d6d6f64656c "License")](https://camo.githubusercontent.com/9c8f3b56227f8504794aad5870a26f07d32a5b1c0fd0397cf22fa132ea5f19d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616d6164616e2f656173792d6d6f64656c)[![Latest Version on Packagist](https://camo.githubusercontent.com/c8c9ca965dbc401978a4977374853aed716ff68f64d3bb869c4c58cfaf494a88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d6164616e2f656173792d6d6f64656c "Latest Version on Packagist")](https://camo.githubusercontent.com/c8c9ca965dbc401978a4977374853aed716ff68f64d3bb869c4c58cfaf494a88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d6164616e2f656173792d6d6f64656c)[![Total Downloads](https://camo.githubusercontent.com/19c7eb0525162a059e3cf65556bfc188a53c5be1319f7796f00db4ba8665e14b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616d6164616e2f656173792d6d6f64656c "Total Downloads")](https://camo.githubusercontent.com/19c7eb0525162a059e3cf65556bfc188a53c5be1319f7796f00db4ba8665e14b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616d6164616e2f656173792d6d6f64656c)

---

- [Overview](#overview)
- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)
- [Support Me](#support-me)

Overview
--------

[](#overview)

Why this package?

**I am focused on simplifying the syntax to match my vision, making it easier for you to perform tasks that typically require more lines of code or effort in Laravel. I am also addressing issues that Laravel still faces. The package is actively maintained, and I regularly review closed PRs in Laravel to find methods to help achieve this.**

What makes this package featured?

- **Accelerated Query Performance:**

    - Significantly improved query performance compared to native Laravel.
- **Straightforward and Unified Syntax:**

    - Provides a unified, consistent syntax for `Query Builder` and `Eloquent Builder`. For more details, see [Establish Query](SEARCH.md#establish-query).
- **Resolved Ambiguous Exception:**

    - Fixes the ambiguous exception that arises when using the same column in both models and their relationships during ordering.
- **Simplified Relationship Ordering:**

    - Easily order results by model relationships (`HasOne`, `HasMany`, `BelongsTo`, `BelongsToMany`) without referring to manual joins. Check out [Order Results](SEARCH.md#order-results) to learn more.
- **Streamline Batch Updates:**

    - Effortlessly perform multiple updates using concise methods, consult [update.md](UPDATE.md).
- And more...

Installation
------------

[](#installation)

Install the package by using [Composer](https://getcomposer.org/):

```
composer require ramadan/easy-model
```

Usage
-----

[](#usage)

Warning

Do not use both traits together, as doing so may lead to unexpected output. However, if you do, the highest priority will be given to the **Searchable** trait.

For comprehensive examples and in-depth usage guidelines, check out [search.md](SEARCH.md) and [update.md](UPDATE.md).

Credits
-------

[](#credits)

- [Mahmoud Ramadan](https://github.com/mahmoudmohamedramadan)
- [Contributors](https://github.com/mahmoudmohamedramadan/easy-model/graphs/contributors)

Support me
----------

[](#support-me)

- [PayPal](https://paypal.com/paypalme/mmramadan496)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance57

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~77 days

Total

23

Last Release

213d ago

PHP version history (2 changes)v1.0.0-alpha.1PHP ^8.0

v1.1.6PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b7e0489f88088d2d0a437fb20d6925d593f8212b58f41daffadfebf5f52ab36?d=identicon)[mmramadan496](/maintainers/mmramadan496)

---

Top Contributors

[![mahmoudmohamedramadan](https://avatars.githubusercontent.com/u/48416569?v=4)](https://github.com/mahmoudmohamedramadan "mahmoudmohamedramadan (330 commits)")

---

Tags

composerdatabaseeasy-modeleloquentlaravelmssqlmysqlormpdosqlsqlitesqlserverlaraveldatabaseormmysqlsqlitepostgresqlmariadbqueryobjectsqlpdopgsqlsqlservermssqloracleeasy-model

### Embed Badge

![Health badge](/badges/ramadan-easy-model/health.svg)

```
[![Health](https://phpackages.com/badges/ramadan-easy-model/health.svg)](https://phpackages.com/packages/ramadan-easy-model)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
