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

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

sofa/eloquence
==============

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

v6(6y ago)1.1k1.5M↓26.3%134[15 issues](https://github.com/jarektkaczyk/eloquence/issues)10MITPHPPHP &gt;=7.0.0CI failing

Since Mar 19Pushed 12mo ago54 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (50)Used By (10)

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

[](#sofaeloquence)

[![GitHub Tests Action Status](https://github.com/jarektkaczyk/eloquence/workflows/Tests/badge.svg)](https://github.com/jarektkaczyk/eloquence/actions?query=workflow%3Atests+branch%3Amaster) [![Downloads](https://camo.githubusercontent.com/439f01e25f2abec9e9e3152851fbabe69b939053455f5d435751836c30bf9f68/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652f646f776e6c6f616473)](https://packagist.org/packages/sofa/eloquence) [![stable](https://camo.githubusercontent.com/d2d9dcabac8c88f0f60ff013097c8a6cce86e2d44230f88ce4a73074732d0efc/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652f762f737461626c652e737667)](https://packagist.org/packages/sofa/eloquence)

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

Currently available extensions:

1. [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

By installing this package you get aforementioned extensions. Alternatively you can pull just single extension:

```
# get all extensions
composer require sofa/eloquence

# get single extension, eg. Metable
composer require sofa/eloquence-metable
```

**Check the [documentation](https://github.com/jarektkaczyk/eloquence/wiki) for installation and usage info, [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** - refer to particular extension repository.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity63

Solid adoption and visibility

Community37

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~34 days

Recently: every ~143 days

Total

49

Last Release

2428d ago

Major Versions

0.4.x-dev → v5.12015-07-18

PHP version history (4 changes)v0.1PHP &gt;=5.4

v5.1PHP &gt;=5.5.9

v5.3PHP &gt;=5.6.4

v5.5PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/34d383bf50d6c73fc747d89a5efacd41ccecc9695aec04148a7c04fc00ef26e7?d=identicon)[jarektkaczyk](/maintainers/jarektkaczyk)

---

Top Contributors

[![jarektkaczyk](https://avatars.githubusercontent.com/u/6928818?v=4)](https://github.com/jarektkaczyk "jarektkaczyk (113 commits)")[![salkhwlani](https://avatars.githubusercontent.com/u/10876587?v=4)](https://github.com/salkhwlani "salkhwlani (2 commits)")[![maltsev](https://avatars.githubusercontent.com/u/923973?v=4)](https://github.com/maltsev "maltsev (2 commits)")[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (1 commits)")[![savaliyaketan](https://avatars.githubusercontent.com/u/6057645?v=4)](https://github.com/savaliyaketan "savaliyaketan (1 commits)")[![django23](https://avatars.githubusercontent.com/u/827397?v=4)](https://github.com/django23 "django23 (1 commits)")[![uniconstructor](https://avatars.githubusercontent.com/u/1384545?v=4)](https://github.com/uniconstructor "uniconstructor (1 commits)")[![itsjavi](https://avatars.githubusercontent.com/u/122741?v=4)](https://github.com/itsjavi "itsjavi (1 commits)")[![ksdev-pl](https://avatars.githubusercontent.com/u/4216259?v=4)](https://github.com/ksdev-pl "ksdev-pl (1 commits)")

---

Tags

laraveleloquentsearchablemappablemetablemutable

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[sofa/eloquence-metable

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

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

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

511.4M5](/packages/sofa-eloquence-mappable)[sofa/eloquence-mutable

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

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

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

231.1M5](/packages/sofa-eloquence-validable)

PHPackages © 2026

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