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

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

ogestor/eloquence-base
======================

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

6.0.1(5y ago)01332[1 PRs](https://github.com/ogestor/eloquence-base/pulls)4MITPHPPHP &gt;=7.0.0

Since Oct 13Pushed 5y agoCompare

[ Source](https://github.com/ogestor/eloquence-base)[ Packagist](https://packagist.org/packages/ogestor/eloquence-base)[ RSS](/packages/ogestor-eloquence-base/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (10)Used By (4)

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

[](#sofaeloquence)

[![Build Status](https://camo.githubusercontent.com/4cbac67d4d4068b4c15ae362c619be2ddfdae18036fec7494465af22cf8192e9/68747470733a2f2f7472617669732d63692e6f72672f6a6172656b746b61637a796b2f656c6f7175656e63652d626173652e737667)](https://travis-ci.org/jarektkaczyk/eloquence-base) [![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).

**If I'm saving you some time with my work, you can back me up on [Patreon page](https://patreon.com/jarektkaczyk).**

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 56.8% 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 ~162 days

Recently: every ~249 days

Total

8

Last Release

1989d ago

Major Versions

v5.6.3 → 6.02019-11-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c8c9cf1e0ca736e0fc81ccedf7a1cf039821f9aaacfa93a6b9fcab6076e27b2?d=identicon)[ogestor](/maintainers/ogestor)

---

Top Contributors

[![felipe-ogestor](https://avatars.githubusercontent.com/u/50678692?v=4)](https://github.com/felipe-ogestor "felipe-ogestor (21 commits)")[![jarektkaczyk](https://avatars.githubusercontent.com/u/6928818?v=4)](https://github.com/jarektkaczyk "jarektkaczyk (10 commits)")[![jleeothon](https://avatars.githubusercontent.com/u/6202537?v=4)](https://github.com/jleeothon "jleeothon (1 commits)")[![maqduni](https://avatars.githubusercontent.com/u/3751356?v=4)](https://github.com/maqduni "maqduni (1 commits)")[![marcoocram](https://avatars.githubusercontent.com/u/6926933?v=4)](https://github.com/marcoocram "marcoocram (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)")[![heliopassarelin](https://avatars.githubusercontent.com/u/49026132?v=4)](https://github.com/heliopassarelin "heliopassarelin (1 commits)")

---

Tags

laraveleloquentsearchablemappablemetablemutable

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ogestor-eloquence-base/health.svg)](https://phpackages.com/packages/ogestor-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)
