PHPackages                             memcachier/php-memcache-sasl - 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. memcachier/php-memcache-sasl

ActiveLibrary[Caching](/categories/caching)

memcachier/php-memcache-sasl
============================

A PHP Memcache client with binary protocol and SASL support

1.0.3(10y ago)556.7k↓47.3%3[1 issues](https://github.com/memcachier/PHPMemcacheSASL/issues)MITPHPPHP &gt;=5.3.0

Since Apr 14Pushed 10y ago7 watchersCompare

[ Source](https://github.com/memcachier/PHPMemcacheSASL)[ Packagist](https://packagist.org/packages/memcachier/php-memcache-sasl)[ Docs](https://github.com/memcachier/PHPMemcacheSASL)[ RSS](/packages/memcachier-php-memcache-sasl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

MemcacheSASL
============

[](#memcachesasl)

A pure PHP Memcache client with [binary protocol](http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped)and [SASL](http://code.google.com/p/memcached/wiki/SASLAuthProtocol)support.

It aims to be compatible with the PHP Memcached class. You can find documentation on the PHP Memcached class [here](http://php.net/manual/en/class.memcached.php). Not all features are supported at this time.

Usage example
-------------

[](#usage-example)

```
include('MemcacheSASL.php');

/* connect to a server */
$m = new MemcacheSASL;
$m->addServer('127.0.0.1', '11211');

/* set timeout to 2 second */
$m->setOption(MemcacheSASL::OPT_SEND_TIMEOUT, 2000000);
$m->setOption(MemcacheSASL::OPT_RECV_TIMEOUT, 2000000);

/* set SASL username and password */
$m->setSaslAuthData('username', 'password');

/* perform some operations */
var_dump($m->add('test', '123'));
$m->delete('test');
```

Changes vs. ronnywang Version
-----------------------------

[](#changes-vs-ronnywang-version)

This is a fork of the original code base by [Ronny Wang](https://github.com/ronnywang/PHPMemcacheSASL). We have made the following improvements:

- Support for `flush`.
- Support for timeouts on operations (connections and requests).
- Fixed `increment` and `decrement` operations.
- Support for the PHP Composer package manager.
- Support `setOptions` method.

Licensing
---------

[](#licensing)

This library is BSD-licensed.

Get involved!
-------------

[](#get-involved)

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the [github issue tracker](http://github.com/memcachier/PHPMemcacheSASL/issues).

Master [git repository](http://github.com/memcachier/PHPMemcacheSASL):

- `git clone git://github.com/memcachier/PHPMemcacheSASL.git`

Authors
-------

[](#authors)

This library was written by [Ronny Wang](https://github.com/ronnywang/PHPMemcacheSASL) and MemCachier.

Ronny Wang wrote the initial version and bulk of the code, MemCachier later forked it to improve on the code base.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

4001d ago

Major Versions

0.9.0 → 1.0.02014-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f15da78fdd4f18e448346769f3631288f7bf1b55996913fd34b9c1820fe45b7?d=identicon)[dterei](/maintainers/dterei)

---

Top Contributors

[![ronnywang](https://avatars.githubusercontent.com/u/527063?v=4)](https://github.com/ronnywang "ronnywang (17 commits)")[![dterei](https://avatars.githubusercontent.com/u/79130?v=4)](https://github.com/dterei "dterei (16 commits)")[![asafdav](https://avatars.githubusercontent.com/u/1223211?v=4)](https://github.com/asafdav "asafdav (3 commits)")[![alevy](https://avatars.githubusercontent.com/u/4689?v=4)](https://github.com/alevy "alevy (1 commits)")[![axiomite](https://avatars.githubusercontent.com/u/7537502?v=4)](https://github.com/axiomite "axiomite (1 commits)")[![eddturtle](https://avatars.githubusercontent.com/u/902607?v=4)](https://github.com/eddturtle "eddturtle (1 commits)")

---

Tags

cachebinarymemcachesasl

### Embed Badge

![Health badge](/badges/memcachier-php-memcache-sasl/health.svg)

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

###  Alternatives

[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)[robinn/phpcacheadmin

A web dashboard for your favorite caching system.

4441.1k1](/packages/robinn-phpcacheadmin)[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32135.8k](/packages/beryllium-cachebundle)[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)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.1k](/packages/ihor-cachalot)[swiggles/memcache

Memcache driver for Laravel 5

1449.9k1](/packages/swiggles-memcache)

PHPackages © 2026

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