PHPackages                             masterbroki/eloquence-base - 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. masterbroki/eloquence-base

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

masterbroki/eloquence-base
==========================

Flexible Searchable, Mappable, Metable, Validation and more extensions for Laravel Eloquent ORM.

v10.0.2(2y ago)022MITPHPPHP ^8.1

Since Oct 13Pushed 2y agoCompare

[ Source](https://github.com/MasterBroki/eloquence-base)[ Packagist](https://packagist.org/packages/masterbroki/eloquence-base)[ Fund](https://softonsofa.com)[ GitHub Sponsors](https://github.com/jarektkaczyk)[ RSS](/packages/masterbroki-eloquence-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (14)Used By (0)

Sofa/Eloquence
==============

[](#sofaeloquence)

[![GitHub Tests Action Status](https://github.com/jarektkaczyk/eloquence-base/workflows/Tests/badge.svg)](https://github.com/jarektkaczyk/eloquence-base/actions?query=workflow%3Atests+branch%3Amaster) [![Coverage Status](https://camo.githubusercontent.com/cadf4f3858ee70d8d789085e5486361862e816be0d3a66155e780344c60f0762/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a6172656b746b61637a796b2f656c6f7175656e63652d626173652f62616467652e737667)](https://coveralls.io/r/jarektkaczyk/eloquence-base) [![Code Quality](https://camo.githubusercontent.com/e13e35eaccaa2fe4d72e7550cb7612463ad22e06b0e1b48821603cf885f6bf4c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6172656b746b61637a796b2f656c6f7175656e63652d626173652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/jarektkaczyk/eloquence-base) [![Downloads](https://camo.githubusercontent.com/75af2c016602347aa667387bfc0f8f95462f6d90160c22db6015cea57b2cdf84/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652d626173652f646f776e6c6f616473)](https://packagist.org/packages/sofa/eloquence-base) [![stable](https://camo.githubusercontent.com/aed1bd003458a4aaeeb1675257b2435f53ae5e66db9dcb8df017efa9898dfc16/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652d626173652f762f737461626c652e737667)](https://packagist.org/packages/sofa/eloquence-base)

Easy and flexible extensions for the [Eloquent ORM](https://laravel.com/docs/eloquent).

Currently available extensions:

1. [Base - Searchable](https://github.com/jarektkaczyk/eloquence-base) query - crazy-simple fulltext search through any related model
2. [Validable](https://github.com/jarektkaczyk/eloquence-validable) - self-validating models
3. [Mappable](https://github.com/jarektkaczyk/eloquence-mappable) -map attributes to table fields and/or related models
4. [Metable](https://github.com/jarektkaczyk/eloquence-metable) - meta attributes made easy
5. [Mutable](https://github.com/jarektkaczyk/eloquence-mutable) - flexible attribute get/set mutators with quick setup
6. [Mutator](https://github.com/jarektkaczyk/eloquence-mutable) - pipe-based mutating

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

[](#installation)

```
composer require sofa/eloquence-base
```

**Check the [documentation](https://github.com/jarektkaczyk/eloquence/wiki) for installation and usage info, [website](http://softonsofa.com/tag/eloquence/) for examples and [API reference](http://jarektkaczyk.github.io/eloquence-api)**

Contribution
------------

[](#contribution)

Shout out to all the Contributors!

All contributions are welcome, PRs must be **tested** and **PSR-2 compliant**.

To validate your builds before committing use the following composer command:

```
composer test
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 65% 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 ~170 days

Recently: every ~283 days

Total

13

Last Release

1085d ago

Major Versions

v5.6.3 → v6.02019-09-24

v6.0 → v7.02020-04-14

v7.1.1 → v10.0.12023-05-21

PHP version history (3 changes)v5.5PHP &gt;=7.0.0

v7.1.2PHP &gt;=7.1

v10.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c0a9c91fccb854814ad8be097ae6a9b2c11a1eb0191b25c60b3913bdfe4f90?d=identicon)[MasterBroki](/maintainers/MasterBroki)

---

Top Contributors

[![jarektkaczyk](https://avatars.githubusercontent.com/u/6928818?v=4)](https://github.com/jarektkaczyk "jarektkaczyk (26 commits)")[![MasterBroki](https://avatars.githubusercontent.com/u/21011120?v=4)](https://github.com/MasterBroki "MasterBroki (4 commits)")[![0x1881](https://avatars.githubusercontent.com/u/86019030?v=4)](https://github.com/0x1881 "0x1881 (2 commits)")[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (2 commits)")[![marcoocram](https://avatars.githubusercontent.com/u/6926933?v=4)](https://github.com/marcoocram "marcoocram (1 commits)")[![jleeothon](https://avatars.githubusercontent.com/u/6202537?v=4)](https://github.com/jleeothon "jleeothon (1 commits)")[![s00d](https://avatars.githubusercontent.com/u/2684895?v=4)](https://github.com/s00d "s00d (1 commits)")[![ncolgrove](https://avatars.githubusercontent.com/u/5377727?v=4)](https://github.com/ncolgrove "ncolgrove (1 commits)")[![OzanKurt](https://avatars.githubusercontent.com/u/8682003?v=4)](https://github.com/OzanKurt "OzanKurt (1 commits)")[![maqduni](https://avatars.githubusercontent.com/u/3751356?v=4)](https://github.com/maqduni "maqduni (1 commits)")

---

Tags

laraveleloquentsearchablemappablemetablemutable

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/masterbroki-eloquence-base/health.svg)

```
[![Health](https://phpackages.com/badges/masterbroki-eloquence-base/health.svg)](https://phpackages.com/packages/masterbroki-eloquence-base)
```

###  Alternatives

[sofa/eloquence

Flexible Searchable, Mappable, Metable, Validation and more extensions for Laravel Eloquent ORM.

1.1k1.5M10](/packages/sofa-eloquence)[sofa/eloquence-base

Flexible Searchable, Mappable, Metable, Validation and more extensions for Laravel Eloquent ORM.

792.0M27](/packages/sofa-eloquence-base)[sofa/eloquence-metable

Flexible Searchable, Mappable, Metable, Validation and more extensions for Laravel Eloquent ORM.

321.3M9](/packages/sofa-eloquence-metable)[sofa/eloquence-mutable

Flexible Searchable, Mappable, Metable, Validation and more extensions for Laravel Eloquent ORM.

261.3M8](/packages/sofa-eloquence-mutable)

PHPackages © 2026

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