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

ActiveLibrary

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 today

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

Maturity34

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)
```

PHPackages © 2026

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