{"id":15478368,"url":"https://github.com/mahmoudmohamedramadan/easy-model","last_synced_at":"2026-05-29T01:00:55.413Z","repository":{"id":257805661,"uuid":"865264146","full_name":"mahmoudmohamedramadan/easy-model","owner":"mahmoudmohamedramadan","description":"A Laravel package for enjoyably managing database queries.","archived":false,"fork":false,"pushed_at":"2026-05-10T19:30:51.000Z","size":1670,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"1.x","last_synced_at":"2026-05-10T21:27:29.827Z","etag":null,"topics":["composer","database","easy-model","eloquent","laravel","mssql","mysql","orm","pdo","sql","sqlite","sqlserver"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahmoudmohamedramadan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"mahmoudmohamedramadan","buy_me_a_coffee":"mmramadan496","patreon":"mmramadan496","custom":"https://paypal.com/paypalme/mmramadan496"}},"created_at":"2024-09-30T08:51:27.000Z","updated_at":"2026-05-10T19:30:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"119cc3fe-8931-4e25-b911-3595e575ed0f","html_url":"https://github.com/mahmoudmohamedramadan/easy-model","commit_stats":{"total_commits":84,"total_committers":2,"mean_commits":42.0,"dds":0.04761904761904767,"last_synced_commit":"91965fbdb9cea3e7aee0d083da9bd49a56b796f3"},"previous_names":["mahmoudmohamedramadan/easy-model"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/mahmoudmohamedramadan/easy-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudmohamedramadan%2Feasy-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudmohamedramadan%2Feasy-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudmohamedramadan%2Feasy-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudmohamedramadan%2Feasy-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmoudmohamedramadan","download_url":"https://codeload.github.com/mahmoudmohamedramadan/easy-model/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudmohamedramadan%2Feasy-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33632271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","database","easy-model","eloquent","laravel","mssql","mysql","orm","pdo","sql","sqlite","sqlserver"],"created_at":"2024-10-02T04:03:45.792Z","updated_at":"2026-05-29T01:00:55.407Z","avatar_url":"https://github.com/mahmoudmohamedramadan.png","language":"PHP","funding_links":["https://github.com/sponsors/mahmoudmohamedramadan","https://buymeacoffee.com/mmramadan496","https://patreon.com/mmramadan496","https://paypal.com/paypalme/mmramadan496"],"categories":[],"sub_categories":[],"readme":"# Easy Model\n\n![Easy Model](/art/logo.png \"Easy Model\")\n\n![Latest Version](https://img.shields.io/packagist/v/ramadan/easy-model?style=flat-square\u0026logo=packagist)\n![Total Downloads](https://img.shields.io/packagist/dt/ramadan/easy-model?style=flat-square)\n![PHP](https://img.shields.io/badge/php-%5E8.2-777BB4?logo=php\u0026style=flat-square)\n![Laravel](https://img.shields.io/badge/laravel-%5E10.0%7C%5E11.0%7C%5E12.0%7C%5E13.0-FF2D20?logo=laravel\u0026style=flat-square)\n![License](https://img.shields.io/packagist/l/ramadan/easy-model?style=flat-square)\n\n - - -\n\n- [Overview](#overview)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Credits](#credits)\n- [Support Me](#support-me)\n\n## Overview\n\nWhy this package?\n\n**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.**\n\nWhat makes this package featured?\n\n- **Accelerated Query Performance:**\n  - Significantly improved query performance compared to native Laravel.\n\n- **Straightforward and Unified Syntax:**\n  - Provides a unified, consistent syntax for `Query Builder` and `Eloquent Builder`. For more details, see [Establish Query](SEARCH.md#establish-query).\n\n- **Resolved Ambiguous Exception:**\n  - Fixes the ambiguous exception that arises when using the same column in both models and their relationships during ordering.\n\n- **Simplified Relationship Ordering:**\n  - 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.\n\n- **Streamline Batch Updates:**\n  - Effortlessly perform multiple updates using concise methods, consult [UPDATE.md](UPDATE.md).\n\n- **Polymorphic \u0026 Through Relationship Ordering:**\n  - Adds first-class ordering support for `MorphOne`, `MorphMany`, `MorphToMany`, `HasOneThrough`, and `HasManyThrough` relationships using safe `LEFT JOIN` handling and automatic per-query join deduplication.\n\n- **Aggregate Ordering Helpers:**\n  - Order results by `COUNT`, `SUM`, `AVG`, `MIN`, or `MAX` of a related relationship via `addOrderByCount` / `addOrderByAggregate`.\n\n- **Keyword Search Across Columns:**\n  - Run a single grouped `LIKE`/`=` search across multiple columns with `addKeywordSearch`.\n\n- **Drop-in Facade:**\n  - Skip the trait entirely and use `EasyModel::for(User::class)-\u003e...` from anywhere.\n\n- And more...\n\n## Installation\n\nInstall the package by using [Composer](https://getcomposer.org/):\n\n```SHELL\ncomposer require ramadan/easy-model\n```\n\n## Usage\n\n\u003e [!WARNING]\n\u003e 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.\n\nFor comprehensive examples and in-depth usage guidelines, check out [SEARCH.md](SEARCH.md) and [UPDATE.md](UPDATE.md).\n\n## Credits\n\n- [Mahmoud Ramadan](https://github.com/mahmoudmohamedramadan)\n- [Contributors](https://github.com/mahmoudmohamedramadan/easy-model/graphs/contributors)\n\n## Support me\n\n- [PayPal](https://paypal.com/paypalme/mmramadan496)\n\n## License\n\nThe MIT License (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudmohamedramadan%2Feasy-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmoudmohamedramadan%2Feasy-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudmohamedramadan%2Feasy-model/lists"}