PHPackages                             webbingbrasil/eloquent-sti - 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. webbingbrasil/eloquent-sti

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

webbingbrasil/eloquent-sti
==========================

Brings a Single Table Inheritance capabilities to Eloquent.

1.0.0(7y ago)11.0k1MITPHPPHP &gt;=5.6.4|^7.0

Since Aug 31Pushed 2y ago2 watchersCompare

[ Source](https://github.com/webbingbrasil/eloquent-sti)[ Packagist](https://packagist.org/packages/webbingbrasil/eloquent-sti)[ RSS](/packages/webbingbrasil-eloquent-sti/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

Eloquent STI
============

[](#eloquent-sti)

Eloquent STI brings a Single Table Inheritance capabilities to Eloquent.

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

[](#installation)

```
composer require "webbingbrasil/eloquent-sti=1.0.0"
```

Usage
-----

[](#usage)

Use the `CanBeInherited` trait in any entity to get STI capabilities in childs

```
use WebbingBrasil\EloquentSTI\CanBeInherited;

class User extends Model
{
    use CanBeInherited;
}
```

Now just extend the parent model with any child models

```
class Admin extends User
{
}

class Manager extends User
{
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2860d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c152ad4f73337f281add1d284040cf3ce36c8e16987c4668cc213f2bb90826?d=identicon)[dmandrade](/maintainers/dmandrade)

---

Top Contributors

[![dmandrade](https://avatars.githubusercontent.com/u/7275012?v=4)](https://github.com/dmandrade "dmandrade (1 commits)")

### Embed Badge

![Health badge](/badges/webbingbrasil-eloquent-sti/health.svg)

```
[![Health](https://phpackages.com/badges/webbingbrasil-eloquent-sti/health.svg)](https://phpackages.com/packages/webbingbrasil-eloquent-sti)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

438834.4k1](/packages/clickbar-laravel-magellan)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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