PHPackages                             atyagi/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. atyagi/elasticache-laravel

ActiveLibrary[Caching](/categories/caching)

atyagi/elasticache-laravel
==========================

Elasticache Drivers for Laravel Cache and Session

2.1.0(10y ago)26313.3k10[1 PRs](https://github.com/atyagi/elasticache-laravel/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 27Pushed 8y ago2 watchersCompare

[ Source](https://github.com/atyagi/elasticache-laravel)[ Packagist](https://packagist.org/packages/atyagi/elasticache-laravel)[ RSS](/packages/atyagi-elasticache-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (18)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

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% 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 ~21 days

Total

17

Last Release

3971d ago

Major Versions

1.1.6 → 2.0.02015-03-05

1.1.8 → 2.0.12015-03-19

1.x-dev → 2.1.02015-06-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/50353d5f0b551fd129fc17b72ab2ee993ed528736b31fc52a526acd5553d43ba?d=identicon)[atyagi](/maintainers/atyagi)

---

Top Contributors

[![atyagi](https://avatars.githubusercontent.com/u/1316495?v=4)](https://github.com/atyagi "atyagi (29 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/atyagi-elasticache-laravel/health.svg)

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

###  Alternatives

[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[ryangjchandler/blade-cache-directive

Cache chunks of your Blade markup with ease.

202200.8k2](/packages/ryangjchandler-blade-cache-directive)[encore/redis-manager

Redis manager for laravel

25243.1k](/packages/encore-redis-manager)[yangusik/laravel-balanced-queue

Laravel queue management with load balancing between partitions (user groups)

786.4k](/packages/yangusik-laravel-balanced-queue)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)

PHPackages © 2026

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