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

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

sofa/eloquence-validable
========================

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

v7.0.2(5y ago)231.1M↓63%17[2 issues](https://github.com/jarektkaczyk/eloquence-validable/issues)[4 PRs](https://github.com/jarektkaczyk/eloquence-validable/pulls)5MITPHPPHP &gt;=7.1.0CI failing

Since Oct 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jarektkaczyk/eloquence-validable)[ Packagist](https://packagist.org/packages/sofa/eloquence-validable)[ Fund](https://softonsofa.com)[ GitHub Sponsors](https://github.com/jarektkaczyk)[ RSS](/packages/sofa-eloquence-validable/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (5)Versions (8)Used By (5)

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

[](#sofaeloquence)

[![GitHub Tests Action Status](https://github.com/jarektkaczyk/eloquence-validable/workflows/Tests/badge.svg)](https://github.com/jarektkaczyk/eloquence-validable/actions?query=workflow%3Atests+branch%3Amaster) [![Coverage Status](https://camo.githubusercontent.com/4e66570b9f1cb7f7c1c474e840d640bae393ca2626a765d7d41b43e79e923224/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a6172656b746b61637a796b2f656c6f7175656e63652d76616c696461626c652f62616467652e737667)](https://coveralls.io/r/jarektkaczyk/eloquence-validable) [![Code Quality](https://camo.githubusercontent.com/f3b6c0996915b5cd14e6aa7c5a7f93099da1ff7059549e8feeee42e31c4bb68a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6172656b746b61637a796b2f656c6f7175656e63652d76616c696461626c652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/jarektkaczyk/eloquence-validable) [![Downloads](https://camo.githubusercontent.com/b16992586178a13b12b8b455afad541e2de66deee4a227d5a52b0e802acd55ca/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652d76616c696461626c652f646f776e6c6f616473)](https://packagist.org/packages/sofa/eloquence-validable) [![stable](https://camo.githubusercontent.com/893b1fe3ea78c1efbd4fcbcb17cbed789e76d9df1500e13bbf23bacaa60baddf/68747470733a2f2f706f7365722e707567782e6f72672f736f66612f656c6f7175656e63652d76616c696461626c652f762f737461626c652e737667)](https://packagist.org/packages/sofa/eloquence-validable)

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

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

[](#installation)

```
composer require sofa/eloquence-validable
```

**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

41

—

FairBetter than 87% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.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 ~191 days

Recently: every ~252 days

Total

7

Last Release

2036d ago

Major Versions

5.6 → v6.02019-09-24

v6.0 → v7.02020-04-14

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

v7.0.2PHP &gt;=7.1.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 (10 commits)")[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (1 commits)")

---

Tags

laraveleloquentsearchablemappablemetablemutable

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[sofa/eloquence

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

1.1k1.5M11](/packages/sofa-eloquence)[sofa/eloquence-mappable

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

511.4M5](/packages/sofa-eloquence-mappable)[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)
