PHPackages                             urbanindo/yii2-elasticmemcache - 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. urbanindo/yii2-elasticmemcache

ActiveLibrary[Caching](/categories/caching)

urbanindo/yii2-elasticmemcache
==============================

Yii2 component for elastic memcache without node discovery plugin

1.0.1(10y ago)219.3k1MITPHPPHP &gt;=5.5.0

Since Jun 24Pushed 7y ago5 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

yii2-elasticmemcache
====================

[](#yii2-elasticmemcache)

Yii2 component for AWS Elasticache Memcache without node discovery plugin

[![Latest Stable Version](https://camo.githubusercontent.com/feffefed67457e5bd746e242e2a06cc44e45ae6e5f57856a9b1b2c050a8fcee0/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d656c61737469636d656d63616368652f762f737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-elasticmemcache)[![Total Downloads](https://camo.githubusercontent.com/27e2ada0702bccdb780bb36017fff9c07d7f00a3e0956f80b5d306b09ce9b791/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d656c61737469636d656d63616368652f646f776e6c6f6164732e737667)](https://packagist.org/packages/urbanindo/yii2-elasticmemcache)[![Latest Unstable Version](https://camo.githubusercontent.com/5a7a42c3be5945c39509973f66fb55a47051c50d0198d96a94f5e62188c423bb/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d656c61737469636d656d63616368652f762f756e737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-elasticmemcache)[![Build Status](https://camo.githubusercontent.com/6753f48c5f90768a3dec08347d79f7b2b3373b95c690ad26da2d0f4da666fca9/68747470733a2f2f7472617669732d63692e6f72672f757262616e696e646f2f796969322d656c61737469636d656d63616368652e737667)](https://travis-ci.org/urbanindo/yii2-elasticmemcache)

Installation
============

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist urbanindo/yii2-elasticmemcache "*"

```

or add

```
"urbanindo/yii2-elasticmemcache": "*"

```

to the require section of your `composer.json` file.

Usage
=====

[](#usage)

```
'components' => [
    'cache' => [
	    'class' => UrbanIndo\Yii2\ElasticMemcache\Cache::class,
	    'serverConfigs' => [
	        [
	                'host' => 'CacheClusterConfiguration1.cache.amazonaws.com', // modify this
	                'port' => 11211,
	                'weight' => 60,
	        ],
	        [
	                'host' => 'CacheClusterConfiguration2.cache.amazonaws.com', // modify this
	                'port' => 11211,
	                'weight' => 40,
	        ]
	    ],
	    'cache' => [
	    	'class' => yii\caching\FileCache::class
	    ]
    ]
]
```

Running Test
============

[](#running-test)

- copy test/template-local.php to local.php
- modify it to your aws elasticache configuration
- run `vendor/bin/phpunit --bootstrap test/bootstrap.php test/CacheTest`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~56 days

Total

2

Last Release

3926d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b7f55dc6d59ee54e7f73ffc96ab51bac7e1e328894ad74998dc55df0df8433c?d=identicon)[urbanindo](/maintainers/urbanindo)

---

Top Contributors

[![petrabarus](https://avatars.githubusercontent.com/u/523289?v=4)](https://github.com/petrabarus "petrabarus (12 commits)")[![dieend](https://avatars.githubusercontent.com/u/1404443?v=4)](https://github.com/dieend "dieend (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/urbanindo-yii2-elasticmemcache/health.svg)

```
[![Health](https://phpackages.com/badges/urbanindo-yii2-elasticmemcache/health.svg)](https://phpackages.com/packages/urbanindo-yii2-elasticmemcache)
```

PHPackages © 2026

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