PHPackages                             fortrabbit/yii-memcached - 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. fortrabbit/yii-memcached

ActiveYii2-extension[Caching](/categories/caching)

fortrabbit/yii-memcached
========================

Memcached Session &amp; Cache for Craft CMS / Yii2 on fortrabbit

2.0.0(1y ago)08.5k↓50%1MITPHPCI failing

Since Jun 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

Craft CMS memcached enabler
===========================

[](#craft-cms-memcached-enabler)

This yii-extension is a memcached drop in replacement for sessions, cache and mutex. The file `Session` handler and the file `Cache` driver are getting replaced to work with Memcache without the need for further configuration for Pro Apps hosted on fortrabbit.

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

[](#requirements)

- Craft CMS (Version 3, 4, 5)
- A Professional App on fortrabbit (see below for other hosting providers)

Install
-------

[](#install)

1. Install the extension with Composer `composer require fortrabbit/yii-memcached`
2. Deploy the `composer.json` and `composer.lock` file with Git
3. **That's it**

Non-fortrabbit environments
---------------------------

[](#non-fortrabbit-environments)

Provide the following ENV vars, if your application is not running on fortrabbit:

- `MEMCACHE_COUNT` (int, number of Memcached servers)
- `MEMCACHE_HOST1` (host name of first Memcached server)
- `MEMCACHE_PORT1` (port of first Memcached server)
- `MEMCACHE_HOST(n)` (host name of nth Memcached server)
- `MEMCACHE_PORT(n)` (port of nth Memcached server)

Good to know
------------

[](#good-to-know)

- Read the fortrabbit [Memcache help](https://help.fortrabbit.com/memcache-pro) why this is mandatory in multi node environments
- This is not a Craft CMS plugin but an extension for the underlying Yii framework
- This is not required for Universal Apps hosted on fortrabbit, since there is no Memcache and the file system is persistent

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~307 days

Recently: every ~297 days

Total

8

Last Release

728d ago

Major Versions

1.4.0 → 2.0.02024-05-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b4fb22c4db9bc5b050c6b0f190885aa0016b980ba0d20ebbaff05a1198c0450?d=identicon)[fortrabbit](/maintainers/fortrabbit)

---

Top Contributors

[![frank-laemmer](https://avatars.githubusercontent.com/u/962736?v=4)](https://github.com/frank-laemmer "frank-laemmer (2 commits)")[![pheeque1](https://avatars.githubusercontent.com/u/97947131?v=4)](https://github.com/pheeque1 "pheeque1 (2 commits)")[![joshuabaker](https://avatars.githubusercontent.com/u/160484?v=4)](https://github.com/joshuabaker "joshuabaker (1 commits)")[![ostark](https://avatars.githubusercontent.com/u/1941743?v=4)](https://github.com/ostark "ostark (1 commits)")

---

Tags

fortrabbitmemcachedyii2mutexcachecachingmemcachedsessionyii2craftcmsmemcache

### Embed Badge

![Health badge](/badges/fortrabbit-yii-memcached/health.svg)

```
[![Health](https://phpackages.com/badges/fortrabbit-yii-memcached/health.svg)](https://phpackages.com/packages/fortrabbit-yii-memcached)
```

###  Alternatives

[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

114542.8k6](/packages/apix-cache)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)[alekseykorzun/memcached-wrapper-php

Optimized PHP 5 wrapper for Memcached extension that supports dog-piling, igbinary and local storage

2984.6k1](/packages/alekseykorzun-memcached-wrapper-php)[robinn/phpcacheadmin

A web dashboard for your favorite caching system.

4441.1k1](/packages/robinn-phpcacheadmin)[avantarm/memcached-emulator

Memcached PHP extension emulator for Windows environments.

101.3k](/packages/avantarm-memcached-emulator)

PHPackages © 2026

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