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

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

rainty/eloquence-base
=====================

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

090PHP

Since Jan 13Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![jarektkaczyk](https://avatars.githubusercontent.com/u/6928818?v=4)](https://github.com/jarektkaczyk "jarektkaczyk (26 commits)")[![raintyyek](https://avatars.githubusercontent.com/u/93080136?v=4)](https://github.com/raintyyek "raintyyek (3 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)")[![maqduni](https://avatars.githubusercontent.com/u/3751356?v=4)](https://github.com/maqduni "maqduni (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)")[![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)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M540](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M208](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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