PHPackages                             dpollard/elasticache-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. [Caching](/categories/caching)
4. /
5. dpollard/elasticache-laravel

ActiveLibrary[Caching](/categories/caching)

dpollard/elasticache-laravel
============================

Elasticache Drivers for Laravel Cache and Session

3.0.4(9y ago)045.6kMITPHPPHP &gt;=5.4.0

Since Jul 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/d-pollard/elasticache-laravel)[ Packagist](https://packagist.org/packages/dpollard/elasticache-laravel)[ RSS](/packages/dpollard-elasticache-laravel/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (5)Versions (21)Used By (0)

Elasticache Laravel
===================

[](#elasticache-laravel)

[![Build Status](https://camo.githubusercontent.com/d8d38892bd4b6d494ed3360a7fcf81dc8c74a525c4d2cf93599f3af817d7296e/68747470733a2f2f7472617669732d63692e6f72672f6174796167692f656c6173746963616368652d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/atyagi/elasticache-laravel)[![Coverage Status](https://camo.githubusercontent.com/a15714a24f6af2dc7cddbd8bebb125a8d6831a4f0cabbc232f158e285e5227a3/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6174796167692f656c6173746963616368652d6c61726176656c2e7376673f7374796c653d666c6174)](https://coveralls.io/r/atyagi/elasticache-laravel?branch=master)[![Packagist](https://camo.githubusercontent.com/2fecc6ae633b3090e4f7702ddfd12a7296edee6eda90d6caf81a001f296c8048/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6174796167692f656c6173746963616368652d6c61726176656c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/atyagi/elasticache-laravel)

AWS Elasticache Session and Cache Drivers for Laravel (Memcached specifically)

Setup
-----

[](#setup)

This package requires the memcached extension for PHP. Please see [this link](http://php.net/manual/en/book.memcached.php) for installation instructions.

With composer, simply add `"atyagi/elasticache-laravel": "~2.1"` to your composer.json. (or `"atyagi/elasticache-laravel": "~1.1"` for Laravel 4 installations)

Once `composer update` is ran, add

`'Atyagi\Elasticache\ElasticacheServiceProvider',`

to the providers array in `app/config.php`.

At this point, inside of `app/session.php` and `app/cache.php`, you can use `elasticache` as a valid driver.

#### Versions

[](#versions)

- 2.\* represents all versions for Laravel 5
- 1.\* represents all versions for Laravel 4

Configuration
-------------

[](#configuration)

All configuration lives within `app/session.php` and `app/cache.php`. The key ones are below:

#### session.php

[](#sessionphp)

- lifetime -- the session lifetime within the Memcached environment
- cookie -- this is the prefix for the session ID to prevent clashing

#### cache.php

[](#cachephp)

Note: for Laravel 5, make sure to add this info to the stores array as follows:

```
'stores' => [
  ...
  'memcached' => [
    'driver' => 'memcached',
    'servers' => [
      [
        'host' => '',
        'port' => '',
        'weight' => ''
        ]
      ]
    ]
    ...
  ]
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

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

Every ~37 days

Recently: every ~104 days

Total

20

Last Release

3645d ago

Major Versions

1.1.6 → 2.0.02015-03-05

1.1.8 → 2.0.12015-03-19

1.1.9 → 2.1.02015-06-28

2.1.0 → 3.0.12016-07-07

### Community

Maintainers

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

---

Top Contributors

[![atyagi](https://avatars.githubusercontent.com/u/1316495?v=4)](https://github.com/atyagi "atyagi (28 commits)")[![d-pollard](https://avatars.githubusercontent.com/u/16292606?v=4)](https://github.com/d-pollard "d-pollard (5 commits)")[![mcanaves](https://avatars.githubusercontent.com/u/1582788?v=4)](https://github.com/mcanaves "mcanaves (1 commits)")

---

Tags

laravelawsElasticache

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dpollard-elasticache-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)

PHPackages © 2026

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