PHPackages                             igormatkovic/memcache - 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. igormatkovic/memcache

ActiveLibrary[Caching](/categories/caching)

igormatkovic/memcache
=====================

Memcache module for Laravel 4

1.7.2(11y ago)48.7k5[1 issues](https://github.com/igormatkovic/Laravel-4-Memcache/issues)PHPPHP &gt;=5.3.0

Since Jul 2Pushed 11y ago2 watchersCompare

[ Source](https://github.com/igormatkovic/Laravel-4-Memcache)[ Packagist](https://packagist.org/packages/igormatkovic/memcache)[ RSS](/packages/igormatkovic-memcache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (11)Used By (0)

Laravel 4 Memcache support
--------------------------

[](#laravel-4-memcache-support)

========

### SetUp Application

[](#setup-application)

Add the package to your composer.json and run composer update.

```
"igormatkovic/memcache": "dev-master"
```

Add the memcache service provider in app/config/app.php:

```
'Igormatkovic\Memcache\MemcacheServiceProvider',
```

You may now update your app/config/session.php config file to use memcache

```
	'driver' => 'memcache',
```

**OR...**

Add this to your app/start/global.php (Cache only)

```
use Illuminate\Cache\Repository;
use Igormatkovic\Memcache\MemcacheStore;
use Igormatkovic\Memcache\MemcacheConnector;

Cache::extend('memcache', function($app) {
	$servers = Config::get('cache.memcached');
	$prefix = Config::get('cache.prefix');

	$memcache = (new MemcacheConnector())->connect($servers);

	return new Repository(new MemcacheStore($memcache, $prefix));
});
```

Update your driver app/config/cache.php

```
	'driver' => 'memcache',
```

Unit test view phpunit

```
	phpunit
```

**Notice: This memcache driver uses the same config as Memcached**

This addon was build because of the Webtatic repo lacking Memcache Support :/

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~11 days

Recently: every ~23 days

Total

10

Last Release

4239d ago

PHP version history (2 changes)1.0PHP &gt;=5.4.0

1.7PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65602f365138878980125607ea33928261d4a9069b4a4ab57bc261e09d81090d?d=identicon)[igormatkovic](/maintainers/igormatkovic)

---

Top Contributors

[![igormatkovic](https://avatars.githubusercontent.com/u/2323435?v=4)](https://github.com/igormatkovic "igormatkovic (14 commits)")

### Embed Badge

![Health badge](/badges/igormatkovic-memcache/health.svg)

```
[![Health](https://phpackages.com/badges/igormatkovic-memcache/health.svg)](https://phpackages.com/packages/igormatkovic-memcache)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[laragear/cache-query

Remember your query results using only one method. Yes, only one.

272122.8k](/packages/laragear-cache-query)[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)

PHPackages © 2026

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