PHPackages                             ykan/elastickit-laravel - 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. [Search &amp; Filtering](/categories/search)
4. /
5. ykan/elastickit-laravel

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

ykan/elastickit-laravel
=======================

Laravel integration for ElasticKit: client bootstrapping and native pagination.

v1.0.0-beta.1(1mo ago)10MITPHPPHP ^8.1CI passing

Since Jun 30Pushed 1mo agoCompare

[ Source](https://github.com/ykan821/ElasticKitLaravel)[ Packagist](https://packagist.org/packages/ykan/elastickit-laravel)[ RSS](/packages/ykan-elastickit-laravel/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

ElasticKit Laravel
==================

[](#elastickit-laravel)

[![Latest Version](https://camo.githubusercontent.com/703a180a32206836d314ac998175cee450268c69f5b5b24c54ed0b739aebc821/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796b616e2f656c61737469636b69742d6c61726176656c)](https://packagist.org/packages/ykan/elastickit-laravel)[![License](https://camo.githubusercontent.com/9a5d35d39e7b42290021e6d3b6d19f9b1ace81465416d8780877a83169cec769/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f796b616e2f656c61737469636b69742d6c61726176656c)](https://packagist.org/packages/ykan/elastickit-laravel)

Laravel integration for [ElasticKit](https://github.com/ykan821/ElasticKit), the framework-agnostic Elasticsearch toolkit. It wires the Elasticsearch client from config, bridges ElasticKit's pagination to Laravel's paginator, exposes Artisan commands for index management and zero-downtime rebuilds, and syncs Eloquent models to Elasticsearch.

Requirements
------------

[](#requirements)

PHP 8.1+, Laravel 10.x–12.x, Elasticsearch 8.x. ElasticKit is pulled in as a dependency.

Install
-------

[](#install)

```
composer require ykan/elastickit-laravel
php artisan vendor:publish --tag=elastickit-config
```

Set cluster credentials in `.env`; the published config documents every option.

What it provides
----------------

[](#what-it-provides)

- **ES clients** built from `config('elastickit.connections')` — lazy, multi-cluster.
- **Pagination** bridged to Laravel: `paginate()` reads the request and returns a native `LengthAwarePaginator`.
- **Artisan commands** for index management (`index:create` / `delete` / `exists` / `mapping:put`) and zero-downtime `rebuild` (with `rollback` / `clean` / `unlock`).

```
php artisan elastickit:rebuild posts
```

- **Eloquent sync** via the `EloquentSource` trait — attach it to an Index, declare a Model, and writes sync to Elasticsearch (queued, transaction-safe, source-driven).

```
use ElasticKit\Index\Index;
use ElasticKit\Laravel\EloquentSource;

class PostIndex extends Index
{
    use EloquentSource;

    protected string $name = 'posts';
    protected string $model = Post::class;
}
```

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance92

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120786616?v=4)[ykan](/maintainers/ykan821)[@ykan821](https://github.com/ykan821)

---

Top Contributors

[![ykan821](https://avatars.githubusercontent.com/u/120786616?v=4)](https://github.com/ykan821 "ykan821 (8 commits)")

---

Tags

builderdslelastickitelasticsearchlaravelquerylaravelelasticsearchquerybuilderDSLelastickit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ykan-elastickit-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ykan-elastickit-laravel/health.svg)](https://phpackages.com/packages/ykan-elastickit-laravel)
```

###  Alternatives

[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k31.8M158](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k57.2M679](/packages/laravel-scout)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

935628.9k2](/packages/mailerlite-laravel-elasticsearch)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)

PHPackages © 2026

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