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 today

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 72% 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

4285d 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.8k9.0M69](/packages/spatie-laravel-responsecache)[illuminate/cache

The Illuminate Cache package.

12937.0M1.8k](/packages/illuminate-cache)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21111.6k](/packages/iazaran-smart-cache)

PHPackages © 2026

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