{"id":34650440,"url":"https://github.com/roaatech/laravel-elastic-session","last_synced_at":"2026-03-16T05:35:30.841Z","repository":{"id":56994605,"uuid":"45725784","full_name":"roaatech/laravel-elastic-session","owner":"roaatech","description":"A session driver for elastic search for laravel 5.1","archived":false,"fork":false,"pushed_at":"2017-03-23T12:25:20.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T06:51:07.365Z","etag":null,"topics":["elastic","elasticsearch","laravel","laravel51","php","session-driver"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roaatech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-07T06:43:09.000Z","updated_at":"2020-03-26T06:05:06.000Z","dependencies_parsed_at":"2022-08-21T13:20:38.620Z","dependency_job_id":null,"html_url":"https://github.com/roaatech/laravel-elastic-session","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/roaatech/laravel-elastic-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Flaravel-elastic-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Flaravel-elastic-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Flaravel-elastic-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Flaravel-elastic-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roaatech","download_url":"https://codeload.github.com/roaatech/laravel-elastic-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Flaravel-elastic-session/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30568033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-16T04:42:47.996Z","status":"ssl_error","status_checked_at":"2026-03-16T04:42:44.668Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elastic","elasticsearch","laravel","laravel51","php","session-driver"],"created_at":"2025-12-24T17:55:40.709Z","updated_at":"2026-03-16T05:35:30.836Z","avatar_url":"https://github.com/roaatech.png","language":"PHP","readme":"# Laravel Elastic Session Driver\nAn elastic-search based session driver for Laravel 5.1\n\n## How to use\n 1. Require it via composer\n\n    ```\n    composer require itvisionsy/laravel-elastic-sessions\n    ```\n 2. Add it to the providers list in `config/app.php`:\n\n    ```php\n    'providers' =\u003e [\n    //...\n    ItvisionSy\\LaravelElasticSessionDriver\\ElasticSessionServiceProvider::class,\n    //...\n    ]\n    ```\n 3. Set the correct settings in `config/session.php`\n\n    ```php\n    \"driver\" =\u003e \"elastic\",\n    \"elastic\" =\u003e [\n        \"url\" =\u003e \"http://localhost:9200/\",\n        \"index\" =\u003e \"laravel-es-sessions\",\n        \"type\" =\u003e \"session\"\n    ],\n    \"lifetime\" =\u003e 30\n    ```\n    Values shown above for elastic parameter are the default values in case you did not configure.\n\n## Index/Type mapping\nElastic will detect the mapping by default, however, it is recommended to set the mapping explicitly.\n\nYou can do so manually by applying this mapping to the index and type:\n\n```json\n{\n    \"index\":\"set_the_index\",\n    \"type\":\"set_the_type\",\n    \"body\":{\n        \"properties\":{\n            \"created\":{\"type\":\"date\"},\n            \"updated\":{\"type\":\"date\"},\n            \"data\":{\"type\":\"string\",\"index\":\"no\"}\n        },\n        \"_ttl\":{\n            \"enabled\":true,\n            \"default\":\"30m\"\n        }\n    }\n}\n```\n\nOr simpler, the package can do it for you. You will need to tinker `./artisan tinker` and then set the mapping:\n\n```php\n\\ItvisionSy\\LaravelElasticSessionDriver\\ElasticSessionStore::putMapping();\n```\n\nPlease note that the `putMapping()` method will automatically read the values from your sessions config file \nincluding the `session.lifetime` value (in minutes) which will be used as the default TTL value.\n\n## Author\nMuhannad Shelleh \u003cmuhannad.shelleh@live.com\u003e\n\n## License\nThis code is published under [MIT](LICENSE) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaatech%2Flaravel-elastic-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froaatech%2Flaravel-elastic-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaatech%2Flaravel-elastic-session/lists"}