PHPackages                             bebbolus/elasticsessions - 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. bebbolus/elasticsessions

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

bebbolus/elasticsessions
========================

ElasticSearch Sessions Driver for Laravel PHP Framework

154PHP

Since Apr 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Bebbolus/ElasticSessions)[ Packagist](https://packagist.org/packages/bebbolus/elasticsessions)[ RSS](/packages/bebbolus-elasticsessions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ElasticSessions
===============

[](#elasticsessions)

a package to provide a ElasticSearch Sessions Driver for Laravel PHP Framework

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

[](#requirements)

ElasticSessions is born on top of Elastiquent, you must be running at least Elasticsearch 1.0. Elasticsearch 0.9 and below will not work and are not supported.

***You need to set-up your own Index and Type for sessions and configure it in .env (ELS\_INDEX\_USER, ELS\_TYPE\_SESSION)***

Set up
------

[](#set-up)

To begin configuration, first update the composer.json with the relative requirement and autoload sections:

Require section for our custom package and third party libraries:

```
...
"require": {
    ...
    "elasticquent/elasticquent": "dev-master",
    "bebbolus/elasticsessions": "dev-master"
},
...

```

Now add the following code on *App\\Config\\App.php*

add app providers:

```
'providers' => [
    ...
    Elasticquent\ElasticquentServiceProvider::class,
    ElasticSessions\ElasticSessionsServiceProvider::class, #CUSTOM ELASTIC SESSION PROVIDER
],

```

add third party Package Facades:

```
'aliases' => [
    ...
    'Es' => Elasticquent\ElasticquentElasticsearchFacade::class,
],

```

run commands:

```
> composer dump-autoload -o
> composer update
> php artisan vendor:publish --force

```

The .env of DEFAULT DEVELOPMENT ENVIRONMENT:

```
SESSION_DRIVER=elastic

ELS_MAX_RESULT=20

ELS_SERVER=localhost
ELS_INDEX_USER=user
ELS_TYPE_SESSION=sessions

```

***NB***

> edit the .env file with the right configuration parameters for the application you will develp i.e. all the ELS\_\* parameters, etc...

***You need to set-up your own Index and Type for sessions and configure it in .env (ELS\_INDEX\_USER, ELS\_TYPE\_SESSION)***

TODO
----

[](#todo)

1. TEST!!!!!!

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e5651ff83a0d76cb7dcaa42331749ccb90496154e5eb873fc438f789f935291?d=identicon)[bebbolus](/maintainers/bebbolus)

![](https://www.gravatar.com/avatar/98e55f9cb6f2713c2838de624536eada220f8331d881be89bd91c415f900e7c2?d=identicon)[sabbat3](/maintainers/sabbat3)

---

Top Contributors

[![Bebbolus](https://avatars.githubusercontent.com/u/7602358?v=4)](https://github.com/Bebbolus "Bebbolus (28 commits)")

---

Tags

elasticsearchelasticsearch-sessions-driverlaravellaravel-php-frameworkpackagephpsessionsession-driversession-drivers

### Embed Badge

![Health badge](/badges/bebbolus-elasticsessions/health.svg)

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

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M202](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M64](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

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

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[shyim/opensearch-php-dsl

OpenSearch/Elasticsearch DSL library

175.9M9](/packages/shyim-opensearch-php-dsl)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)

PHPackages © 2026

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