PHPackages                             use-the-fork/laravel-elasticsearch-model - 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. use-the-fork/laravel-elasticsearch-model

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

use-the-fork/laravel-elasticsearch-model
========================================

Laravel based elasticsearch model

1.0.1(3y ago)020[3 PRs](https://github.com/use-the-fork/laravel-elasticsearch-model/pulls)MITPHPPHP ^8.1

Since Jan 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/use-the-fork/laravel-elasticsearch-model)[ Packagist](https://packagist.org/packages/use-the-fork/laravel-elasticsearch-model)[ Docs](https://github.com/use-the-fork/laravel-elasticsearch-model)[ RSS](/packages/use-the-fork-laravel-elasticsearch-model/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (6)Used By (0)

Laravel based elasticsearch model
=================================

[](#laravel-based-elasticsearch-model)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b4a43a5b198ca5ca047734eae38f3c0ed6c67f22e8554d60d3b45627a6a4a7d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7573652d7468652d666f726b2f6c61726176656c2d656c61737469637365617263682d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/use-the-fork/laravel-elasticsearch-model)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c6af1941ebbc4092a52d43ec8ca3cde98aae00d7a04cf23be9ac9c5eab284caa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7573652d7468652d666f726b2f6c61726176656c2d656c61737469637365617263682d6d6f64656c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/use-the-fork/laravel-elasticsearch-model/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/99f1929fcdcf6559dc66762fbaa3f9bbf8ec064de739ccdcd6acfc81d56fa420/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7573652d7468652d666f726b2f6c61726176656c2d656c61737469637365617263682d6d6f64656c2f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/use-the-fork/laravel-elasticsearch-model/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/60ba7fd8c16731863762a297e45f61b46c06bee16cf8484710e61c93d3954242/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7573652d7468652d666f726b2f6c61726176656c2d656c61737469637365617263682d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/use-the-fork/laravel-elasticsearch-model)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/4f243253a9c546060b75c74383f1ead38dc1e79ef9683e1db4acf13afbb98e96/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d656c61737469637365617263682d6d6f64656c2e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-elasticsearch-model)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require use-the-fork/laravel-elasticsearch-model
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-elasticsearch-model-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-elasticsearch-model-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-elasticsearch-model-views"
```

Usage
-----

[](#usage)

```
$laravelElasticsearchModel = new UseTheFork\LaravelElasticsearchModel();
echo $laravelElasticsearchModel->echoPhrase('Hello, UseTheFork!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Greg L](https://github.com/use-the-fork)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

1227d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f36dfb5fbc59a2d3cfe4f8500a0580bb579d0641a6887abce2804ba633279e67?d=identicon)[use-the-fork](/maintainers/use-the-fork)

---

Top Contributors

[![UseTheFork](https://avatars.githubusercontent.com/u/23747916?v=4)](https://github.com/UseTheFork "UseTheFork (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laraveluse-the-forklaravel-elasticsearch-model

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/use-the-fork-laravel-elasticsearch-model/health.svg)

```
[![Health](https://phpackages.com/badges/use-the-fork-laravel-elasticsearch-model/health.svg)](https://phpackages.com/packages/use-the-fork-laravel-elasticsearch-model)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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