PHPackages                             buyersclub/laravel-eloquent-model-interface - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. buyersclub/laravel-eloquent-model-interface

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

buyersclub/laravel-eloquent-model-interface
===========================================

Polyfill for the "missing" Laravel Eloquent model interface.

2.1.1(4y ago)062MITPHPPHP ^7.4|^8.0

Since Feb 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/buyersclub/laravel-eloquent-model-interface)[ Packagist](https://packagist.org/packages/buyersclub/laravel-eloquent-model-interface)[ RSS](/packages/buyersclub-laravel-eloquent-model-interface/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

 [![Latest Stable Version](https://camo.githubusercontent.com/47642b1069f89bd9423eb9e5e80f24bfa8dccf32e8e250043e6cef98d402f10e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f627579657273636c75622f6c61726176656c2d656c6f7175656e742d6d6f64656c2d696e74657266616365)](https://packagist.org/packages/buyersclub/laravel-eloquent-model-interface) [![License](https://camo.githubusercontent.com/3dbfce059fa8d3614b0fbc8e7ee4003fd72e1e42473a555781067ef28bd1a77e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f627579657273636c75622f6c61726176656c2d656c6f7175656e742d6d6f64656c2d696e74657266616365)](https://github.com/buyersclub/laravel-eloquent-model-interface/blob/master/LICENSE.md)

Model Interface
===============

[](#model-interface)

Polyfill for the "missing" Laravel Eloquent model interface.

Installation
============

[](#installation)

```
composer require buyersclub/laravel-eloquent-model-interface
```

Why
===

[](#why)

If you are using interfaces for your models, you might have methods that return an arbitrary model, in those cases it convenient to be able to use a typehint that reflects that. Without this polyfill this can only be done by typehinting `\Illuminate\Database\Eloquent\Model` which will not be fully compatible with your model interfaces, by introducing this base interface that your model interfaces can extand this problem can be solved.

This is especially useful when you are using static analyzers such as PHPStan or similar.

Usage
=====

[](#usage)

```
use Buyersclub\Laravel\Eloquent\EloquentModelInterface;

interface UserInterface extends EloquentModelInterface
{
    //
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Total

4

Last Release

1738d ago

Major Versions

1.0.0 → 2.0.02021-08-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10432296?v=4)[Johan Rosenson](/maintainers/johanrosenson)[@johanrosenson](https://github.com/johanrosenson)

---

Top Contributors

[![johanrosenson](https://avatars.githubusercontent.com/u/10432296?v=4)](https://github.com/johanrosenson "johanrosenson (5 commits)")

---

Tags

laravelpolyfill

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/buyersclub-laravel-eloquent-model-interface/health.svg)

```
[![Health](https://phpackages.com/badges/buyersclub-laravel-eloquent-model-interface/health.svg)](https://phpackages.com/packages/buyersclub-laravel-eloquent-model-interface)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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