PHPackages                             djiele/ext-php-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. djiele/ext-php-memcached

ActiveLibrary[Caching](/categories/caching)

djiele/ext-php-memcached
========================

Emulation of memcached php extension

02PHP

Since Jan 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/djiele/ext-php-memcached)[ Packagist](https://packagist.org/packages/djiele/ext-php-memcached)[ RSS](/packages/djiele-ext-php-memcached/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Memcached
=========

[](#memcached)

This library is a native PHP emulation of memcached PHP extension. The MemcachedClient class implements all of the Memcached ASCII protocol (but not the meta commands yet) and the binary protocol with SASL authentication.

Note for windows users: this library makes use of few PHP extensions (igbinary, msgpack, fastlz, memcached\_hashkit). Although these extensions are not mandatory, they should be used to reproduce the default configuration of the php\_memcached extension.

PHP\_Fastlz can be downloaded from [here](https://www.djiele.net/php-fastlz/)

PHP\_Memcached\_hashkit can be downloaded from [here](https://www.djiele.net/php-memcached-hashkit/)

##### Installation

[](#installation)

You can install the package via composer:

```
composer require djiele/ext-php-memcached "dev-master"

```

##### Simple usage

[](#simple-usage)

```
require_once __DIR__'./vendor/autoload.php';
use Djiele\Memcached\Memcached;
$memc = new Memcached();
$memc->addServer('127.0.0.1', 11211, 80);
$memc->add('key', 'value', 3600);
$var = $memc->get('key', function(Memcached $m, $k, &$v) { $v = uniqid(); return true; }, Memcached::GET_EXTENDED), true);
var_dump($var);
```

##### Features

[](#features)

See the [manual](https://www.php.net/manual/en/book.memcached.php) for functions references

```
__construct
add
addByKey
addServer
addServers
append
appendByKey
cas
casByKey
decrement
decrementByKey
delete
deleteByKey
deleteMulti
deleteMultiByKey
fetch
fetchAll
flush
get
getAllKeys
getByKey
getDelayed
getDelayedByKey
getMulti
getMultiByKey
getOption
getResultCode
getResultMessage
getServerByKey
getServerList
getStats
getVersion
increment
incrementByKey
isPersistent
isPristine
prepend
prependByKey
quit
replace
replaceByKey
resetServerList
set
setByKey
setCredentials
setMulti
setMultiByKey
setOption
setOptions
setSaslAuthData
touch
touchByKey
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40306999?v=4)[djiele](/maintainers/djiele)[@djiele](https://github.com/djiele)

---

Top Contributors

[![djiele](https://avatars.githubusercontent.com/u/40306999?v=4)](https://github.com/djiele "djiele (5 commits)")

### Embed Badge

![Health badge](/badges/djiele-ext-php-memcached/health.svg)

```
[![Health](https://phpackages.com/badges/djiele-ext-php-memcached/health.svg)](https://phpackages.com/packages/djiele-ext-php-memcached)
```

###  Alternatives

[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.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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