PHPackages                             egeatech/laravel-models - 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. egeatech/laravel-models

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

egeatech/laravel-models
=======================

A package to better handle database operations via Eloquent Models.

4.0.0(2y ago)14.0kMITPHPPHP ^8.0CI failing

Since May 18Pushed 2y ago4 watchersCompare

[ Source](https://github.com/EgeatechSRL/laravel-models)[ Packagist](https://packagist.org/packages/egeatech/laravel-models)[ Docs](https://github.com/EgeatechSRL/laravel-models)[ RSS](/packages/egeatech-laravel-models/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (6)Versions (21)Used By (0)

Laravel Exceptions
==================

[](#laravel-exceptions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dd03ffe68fa5d19b44650191d1bf94f7fdd0bdfde52fd61bfa5e33472e25a01c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65676561746563682f6c61726176656c2d6d6f64656c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/egeatech/laravel-models)[![Total Downloads](https://camo.githubusercontent.com/3aa1b8a50c24dc2f6539c479fa7ce233ac4b6c6470a4f36f36f7dade79de36e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65676561746563682f6c61726176656c2d6d6f64656c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/egeatech/laravel-models)

A package to help handling Model CRUD operations.

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

[](#installation)

This package now supports only Laravel 9, therefore requiring **at least** PHP 8.0. Support for PHP 7.4 is valid up to package version 2.3.3.

Via Composer

```
$ composer require egeatech/laravel-models
```

Usage
-----

[](#usage)

This package exposes an interface to manipulate database data, by using an implementation of the repository data pattern.

We provide both an interface and an abstract implementation to be extended. To develop APIs, the abstract class references [Spatie Query Builder library](https://spatie.be/docs/laravel-query-builder/v3/introduction)for the `find` and `index` methods (for more details take a look at the source code).

To identify primary keys of eloquent Model classes, we also developed an `IdentifierInterface` (with an abstract class to be extended for specific needs) which is used by the `BaseRepository` when dealing with specific entity operations, such as update, delete or find.

At the moment we only support `int` or `string` PKs, composite keys support is not in the plan.

Change log
----------

[](#change-log)

Please see the [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Egea Tecnologie Informatiche](https://egeatech.com)
- [Marco Guidolin](mailto:m.guidolin@egeatech.com)

License
-------

[](#license)

The software is licensed under MIT. Please see the [LICENSE](LICENSE.md) file for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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 ~53 days

Recently: every ~105 days

Total

19

Last Release

858d ago

Major Versions

1.0.3 → 2.0.02021-09-28

2.3.3 → 3.0.02022-11-15

2.4.0 → 4.0.02024-01-09

PHP version history (4 changes)1.0.0PHP &gt;=7.4

2.0.0PHP ^7.4|^8.0

2.1.0PHP ^7.4|8

3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0513a20b3ff556ac158dc56a13381e56501d2218d2c0dbaacef9410e3c3da462?d=identicon)[marcoguido](/maintainers/marcoguido)

![](https://avatars.githubusercontent.com/u/3874019?v=4)[egeatech](/maintainers/egeatech)[@egeatech](https://github.com/egeatech)

---

Tags

laraveleloquentmodelsrepository

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/egeatech-laravel-models/health.svg)

```
[![Health](https://phpackages.com/badges/egeatech-laravel-models/health.svg)](https://phpackages.com/packages/egeatech-laravel-models)
```

PHPackages © 2026

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