PHPackages                             menthol/flexible - 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. menthol/flexible

Abandoned → [tamayo/laravel-scout-elastic](/?search=tamayo%2Flaravel-scout-elastic)ArchivedLibrary[Database &amp; ORM](/categories/database)

menthol/flexible
================

Elasticsearch enabled Eloquent models

12206PHP

Since Feb 12Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Flexible [![Build Status](https://camo.githubusercontent.com/69d61a62294fa86908c7a432856c53d9c0e15fb179c5f4e2cad7d57a004fa1ba/68747470733a2f2f7472617669732d63692e6f72672f6d656e74686f6c2f466c657869626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/menthol/Flexible) [![Latest Stable Version](https://camo.githubusercontent.com/b938b4fde0a4f13ee06308bfc8da5784fd21cdedf24140bfed29ab2ad09e2620/68747470733a2f2f706f7365722e707567782e6f72672f6d656e74686f6c2f666c657869626c652f762f737461626c65)](https://packagist.org/packages/menthol/flexible) [![Total Downloads](https://camo.githubusercontent.com/08cce3f37b38391ef4cfe4567ba14060dab325000fd89ed1a0740d7d1b55afc5/68747470733a2f2f706f7365722e707567782e6f72672f6d656e74686f6c2f666c657869626c652f646f776e6c6f616473)](https://packagist.org/packages/menthol/flexible) [![Latest Unstable Version](https://camo.githubusercontent.com/ac9702962cabac251965b7936303bdf6b4d2d45138ecb3bfed2ad467e39f0f32/68747470733a2f2f706f7365722e707567782e6f72672f6d656e74686f6c2f666c657869626c652f762f756e737461626c65)](https://packagist.org/packages/menthol/flexible) [![License](https://camo.githubusercontent.com/5ba9664fd7355067bf69f4128a2c08ca9d061ae1b697cdd85eeeb32c0aefc03e/68747470733a2f2f706f7365722e707567782e6f72672f6d656e74686f6c2f666c657869626c652f6c6963656e7365)](https://packagist.org/packages/menthol/flexible)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#flexible-----)

Flexible is a Laravel 4 and 5 package that aims to seamlessly integrate Elasticsearch functionality with the Eloquent ORM.

WIP
===

[](#wip)

The API can be changed (and will) without warning until the first beta tag.

Features
--------

[](#features)

- Plug 'n Play searching functionality for Eloquent models
- Automatic creation/indexing based on Eloquent model properties and relations
- Aggregations, Suggestions, Autocomplete, Highlighting, etc. It's all there!
- Load Eloquent models based on Elasticsearch queries
- Automatic reindexing on updates of (related) Eloquent models

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

[](#installation)

Add Flexible to your composer.json file:

`"menthol/flexible": "dev-master"`

Add the service provider to your Laravel application config:

```
'Menthol\Flexible\FlexibleServiceProvider'
```

Credits
-------

[](#credits)

This package is very much inspired by these excellent packages that already exist.

- [Larasearch](https://github.com/iverberk/larasearch)
- [Searchkick](https://github.com/ankane/searchkick)
- [Elasticsearch Rails](https://github.com/elasticsearch/elasticsearch-rails)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.6% 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/5140e4dccef9903afdc8528e24f855ecd61f4e439b512e7b1af4f1c8378d2248?d=identicon)[menthol](/maintainers/menthol)

---

Top Contributors

[![menthol](https://avatars.githubusercontent.com/u/1001497?v=4)](https://github.com/menthol "menthol (61 commits)")[![iverberk](https://avatars.githubusercontent.com/u/2798710?v=4)](https://github.com/iverberk "iverberk (16 commits)")[![myselfhimself](https://avatars.githubusercontent.com/u/1265346?v=4)](https://github.com/myselfhimself "myselfhimself (16 commits)")[![ferrydg](https://avatars.githubusercontent.com/u/8331456?v=4)](https://github.com/ferrydg "ferrydg (4 commits)")[![nuzelac](https://avatars.githubusercontent.com/u/195299?v=4)](https://github.com/nuzelac "nuzelac (1 commits)")[![SKEEZERx](https://avatars.githubusercontent.com/u/7212949?v=4)](https://github.com/SKEEZERx "SKEEZERx (1 commits)")

### Embed Badge

![Health badge](/badges/menthol-flexible/health.svg)

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

###  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.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

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

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/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)
