PHPackages                             mehdi89/elasticquent - 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. mehdi89/elasticquent

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

mehdi89/elasticquent
====================

Maps Laravel Eloquent models to Elasticsearch types.

v1.0.7(8y ago)01.7k[1 PRs](https://github.com/mehdi89/Elasticquent/pulls)MITPHPPHP &gt;=5.4.0

Since Oct 22Pushed 4y agoCompare

[ Source](https://github.com/mehdi89/Elasticquent)[ Packagist](https://packagist.org/packages/mehdi89/elasticquent)[ Docs](https://github.com/elasticquent/Elasticquent)[ RSS](/packages/mehdi89-elasticquent/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (9)Used By (0)

Elasticquent
============

[](#elasticquent)

This fork fixed two issue of main [repository](https://github.com/elasticquent/Elasticquent) . check main repo for more details.

1. issue with elasticSearch 6+ version. Content-Type : \[\]
2. Allow to pass raw json query. example:

```
$jsonQuery = '{
  "query": {
    "bool": {
      "must": [
        { "match": { "transcription":"'.$keyword.'" }},
        { "match": { "userID": '.$userid.' }}
      ]
    }
  }
}';
$audios = Audio::searchByQuery($jsonQuery);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~189 days

Recently: every ~256 days

Total

8

Last Release

2941d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6986008?v=4)[Mehedi Hasan](/maintainers/mehdi89)[@mehdi89](https://github.com/mehdi89)

---

Top Contributors

[![timgws](https://avatars.githubusercontent.com/u/1050232?v=4)](https://github.com/timgws "timgws (59 commits)")[![adamfairholm](https://avatars.githubusercontent.com/u/298239?v=4)](https://github.com/adamfairholm "adamfairholm (45 commits)")[![petercoles](https://avatars.githubusercontent.com/u/2947594?v=4)](https://github.com/petercoles "petercoles (17 commits)")[![mehdi89](https://avatars.githubusercontent.com/u/6986008?v=4)](https://github.com/mehdi89 "mehdi89 (8 commits)")[![chuangbo](https://avatars.githubusercontent.com/u/179978?v=4)](https://github.com/chuangbo "chuangbo (6 commits)")[![specialtactics](https://avatars.githubusercontent.com/u/2955754?v=4)](https://github.com/specialtactics "specialtactics (2 commits)")[![dschniepp](https://avatars.githubusercontent.com/u/1108670?v=4)](https://github.com/dschniepp "dschniepp (2 commits)")[![yswery](https://avatars.githubusercontent.com/u/6571918?v=4)](https://github.com/yswery "yswery (2 commits)")[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (1 commits)")[![onbjerg](https://avatars.githubusercontent.com/u/8862627?v=4)](https://github.com/onbjerg "onbjerg (1 commits)")[![PauliusMacernis](https://avatars.githubusercontent.com/u/8057568?v=4)](https://github.com/PauliusMacernis "PauliusMacernis (1 commits)")[![pwoo](https://avatars.githubusercontent.com/u/799069?v=4)](https://github.com/pwoo "pwoo (1 commits)")[![romulowspp](https://avatars.githubusercontent.com/u/381512?v=4)](https://github.com/romulowspp "romulowspp (1 commits)")[![shekarsiri](https://avatars.githubusercontent.com/u/3535027?v=4)](https://github.com/shekarsiri "shekarsiri (1 commits)")[![stevenay](https://avatars.githubusercontent.com/u/6089226?v=4)](https://github.com/stevenay "stevenay (1 commits)")[![swhammack](https://avatars.githubusercontent.com/u/5473948?v=4)](https://github.com/swhammack "swhammack (1 commits)")[![Thedigit](https://avatars.githubusercontent.com/u/2549321?v=4)](https://github.com/Thedigit "Thedigit (1 commits)")[![TiagoMaiaL](https://avatars.githubusercontent.com/u/6910889?v=4)](https://github.com/TiagoMaiaL "TiagoMaiaL (1 commits)")[![cambricorp](https://avatars.githubusercontent.com/u/479690?v=4)](https://github.com/cambricorp "cambricorp (1 commits)")[![xian13](https://avatars.githubusercontent.com/u/2676750?v=4)](https://github.com/xian13 "xian13 (1 commits)")

---

Tags

laravelelasticsearcheloquent

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mehdi89-elasticquent/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[elasticquent/elasticquent

Maps Laravel Eloquent models to Elasticsearch types.

1.4k953.6k2](/packages/elasticquent-elasticquent)

PHPackages © 2026

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