PHPackages                             cache/encryption-cache - 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. cache/encryption-cache

ActiveLibrary[Caching](/categories/caching)

cache/encryption-cache
======================

Adds encryption support to your PSR-6 cache implementation

1.3.0(4y ago)111.2kMITPHPPHP &gt;=7.4

Since Dec 25Pushed 4y ago4 watchersCompare

[ Source](https://github.com/php-cache/encryption-cache)[ Packagist](https://packagist.org/packages/cache/encryption-cache)[ Docs](http://www.php-cache.com/en/latest/)[ RSS](/packages/cache-encryption-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

Encryption PSR-6 Cache pool
===========================

[](#encryption-psr-6-cache-pool)

[![Gitter](https://camo.githubusercontent.com/2ded3ed1778dcfc9af5e2dfaad55e176ade49082cb6ea757169cc5ea23bf32ac/68747470733a2f2f6261646765732e6769747465722e696d2f7068702d63616368652f63616368652e737667)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![Latest Stable Version](https://camo.githubusercontent.com/fbe430a4ecc54a35faf5513e2d2402ab13af0a187c0699af02f4bf5c77fda2ed/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f656e6372797074696f6e2d63616368652f762f737461626c65)](https://packagist.org/packages/cache/encryption-cache)[![codecov.io](https://camo.githubusercontent.com/1ef151b14f81e3bd7e2ad5eaec1d9a9151d5a4bd2960ce2081a0e28e90085b02/68747470733a2f2f636f6465636f762e696f2f6769746875622f7068702d63616368652f656e6372797074696f6e2d63616368652f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/php-cache/encryption-cache?branch=master)[![Total Downloads](https://camo.githubusercontent.com/cbcc1ee89c495f12b45b9cd49607281e7f5d0e14b23980d3c6cc61ecaa295be6/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f656e6372797074696f6e2d63616368652f646f776e6c6f616473)](https://packagist.org/packages/cache/encryption-cache)[![Monthly Downloads](https://camo.githubusercontent.com/61ea7463506b4e78a787edd561e151c773f00d0b5710dcdf035c198c66a14373/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f656e6372797074696f6e2d63616368652f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cache/encryption-cache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This repository has a encryption wrapper that makes the PSR-6 cache implementation encrypted.

Encryption and decryption are both expensive operations, and frequent reads from an encrypted data store can quickly become a bottleneck in otherwise performant applications. Use encrypted caches sparingly.

### Install

[](#install)

```
composer require cache/encryption-cache
```

### Use

[](#use)

Read the [documentation on usage](http://www.php-cache.com/en/latest/encryption/).

### Implement

[](#implement)

Read the [documentation on implementation](http://www.php-cache.com/en/latest/implementing-cache-pools/encryption/).

### Contribute

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or report any issues you find on the [issue tracker](http://issues.php-cache.com).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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 ~369 days

Recently: every ~442 days

Total

6

Last Release

1584d ago

Major Versions

0.2.0 → 1.0.02017-07-17

PHP version history (4 changes)0.1.0PHP ^5.5 || ^7.0

0.2.0PHP ^5.6 || ^7.0

1.2.0PHP ^5.6 || ^7.0 || ^8.0

1.3.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (34 commits)")[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (7 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (4 commits)")[![Korbeil](https://avatars.githubusercontent.com/u/944409?v=4)](https://github.com/Korbeil "Korbeil (2 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")[![StephenClouse](https://avatars.githubusercontent.com/u/468025?v=4)](https://github.com/StephenClouse "StephenClouse (1 commits)")

---

Tags

encryptioncachepsr6encrypted

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cache-encryption-cache/health.svg)

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

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k348.9M2.5k](/packages/symfony-cache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[cache/tag-interop

Framework interoperable interfaces for tags

10525.0M12](/packages/cache-tag-interop)[cache/cache

Library of all the php-cache adapters

2712.7M22](/packages/cache-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/taggable-cache

Add tag support to your PSR-6 cache implementation

352.4M12](/packages/cache-taggable-cache)

PHPackages © 2026

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