PHPackages                             yangguanghui/filesystem-adapter - 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. yangguanghui/filesystem-adapter

ActiveLibrary[Caching](/categories/caching)

yangguanghui/filesystem-adapter
===============================

A PSR-6 cache implementation using filesystem. This implementation supports tags

1.2.1(4y ago)0101MITPHPPHP &gt;=7.4

Since Jan 6Pushed 4y agoCompare

[ Source](https://github.com/yangguanghui/filesystem-adapter)[ Packagist](https://packagist.org/packages/yangguanghui/filesystem-adapter)[ Docs](http://www.php-cache.com/en/latest/)[ RSS](/packages/yangguanghui-filesystem-adapter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (13)Used By (1)

Filesystem PSR-6 Cache pool
===========================

[](#filesystem-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/1f4eb4b30442a88b7e062241e6608ea111b022ac0dbf5614650164c885b2819b/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f66696c6573797374656d2d616461707465722f762f737461626c65)](https://packagist.org/packages/cache/filesystem-adapter)[![codecov.io](https://camo.githubusercontent.com/4e7cf79141e83b5fdc4af426a4c89c1ab904002a44694466f6cebe30de22696e/68747470733a2f2f636f6465636f762e696f2f6769746875622f7068702d63616368652f66696c6573797374656d2d616461707465722f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/php-cache/filesystem-adapter?branch=master)[![Total Downloads](https://camo.githubusercontent.com/441b3c981391e31a6b57f2ee4e66602b957fd04d53bc4dba489a505e2081f28c/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f66696c6573797374656d2d616461707465722f646f776e6c6f616473)](https://packagist.org/packages/cache/filesystem-adapter)[![Monthly Downloads](https://camo.githubusercontent.com/365bb4c7d2917db101dff3aa75d32a77e884bd0b175f198380ede13ff194ab7e/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f66696c6573797374656d2d616461707465722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cache/filesystem-adapter)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is a PSR-6 cache implementation using Filesystem. It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).

This implementation is using the excellent [Flysystem](http://flysystem.thephpleague.com/).

### Install

[](#install)

```
composer require cache/filesystem-adapter
```

### Use

[](#use)

To create an instance of `FilesystemCachePool` you need to configure a `Filesystem` and its adapter.

```
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Cache\Adapter\Filesystem\FilesystemCachePool;

$filesystemAdapter = new Local(__DIR__.'/');
$filesystem        = new Filesystem($filesystemAdapter);

$pool = new FilesystemCachePool($filesystem);
```

You can change the folder the cache pool will write to through the `setFolder` setter:

```
$pool = new FilesystemCachePool($filesystem);
$pool->setFolder('path/to/cache');
```

### 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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 65.8% 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 ~207 days

Recently: every ~463 days

Total

12

Last Release

1492d ago

Major Versions

0.4.0 → 1.0.02017-07-16

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

0.3.1PHP ^5.5 || ^7.0

0.4.0PHP ^5.6 || ^7.0

1.1.0PHP ^5.6 || ^7.0 || ^8.0

1.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5c70d03bf99e4fb84fa683f92cabd697cd4a2bf4efc574aae6856300a20000a?d=identicon)[yangguanghui](/maintainers/yangguanghui)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (48 commits)")[![cryptiklemur](https://avatars.githubusercontent.com/u/896295?v=4)](https://github.com/cryptiklemur "cryptiklemur (6 commits)")[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (5 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (4 commits)")[![yangguanghui](https://avatars.githubusercontent.com/u/8952425?v=4)](https://github.com/yangguanghui "yangguanghui (3 commits)")[![maidmaid](https://avatars.githubusercontent.com/u/4578773?v=4)](https://github.com/maidmaid "maidmaid (2 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![guyradford](https://avatars.githubusercontent.com/u/2640704?v=4)](https://github.com/guyradford "guyradford (1 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")[![rvanlaak](https://avatars.githubusercontent.com/u/2707563?v=4)](https://github.com/rvanlaak "rvanlaak (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")

---

Tags

filesystemcachepsr-6tag

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yangguanghui-filesystem-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/yangguanghui-filesystem-adapter/health.svg)](https://phpackages.com/packages/yangguanghui-filesystem-adapter)
```

###  Alternatives

[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M81](/packages/cache-filesystem-adapter)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M37](/packages/cache-adapter-common)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)

PHPackages © 2026

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