PHPackages                             emgag/flysystem-tempdir - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. emgag/flysystem-tempdir

AbandonedArchivedLibrary[File &amp; Storage](/categories/file-storage)

emgag/flysystem-tempdir
=======================

Flysystem adapter for a self-destroying temporary directory

v3.0.0(3y ago)1086.7k↓22.4%14MITPHPPHP ^7.4 || ^8.0 || ^8.1

Since May 18Pushed 3y ago2 watchersCompare

[ Source](https://github.com/emgag/flysystem-tempdir)[ Packagist](https://packagist.org/packages/emgag/flysystem-tempdir)[ RSS](/packages/emgag-flysystem-tempdir/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (7)Used By (4)

Flysystem Adapter for Temporary Directory
=========================================

[](#flysystem-adapter-for-temporary-directory)

[![build](https://github.com/emgag/flysystem-tempdir/workflows/build/badge.svg)](https://github.com/emgag/flysystem-tempdir/workflows/build/badge.svg)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/efeb2e5cc80dd08026cd142ad8fb4c3867b34c40cfbe20ee204ad083170d974d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d6761672f666c7973797374656d2d74656d706469722e737667)](https://packagist.org/packages/emgag/flysystem-tempdir)

An adapter for the [Flysystem](https://github.com/thephpleague/flysystem) file system abstraction library which creates a temporary directory on local filesystem and which is automatically removed again on object destruct.

Installation
------------

[](#installation)

```
composer require emgag/flysystem-tempdir
```

Usage
-----

[](#usage)

As League\\Flysystem\\Filesystem wrapper:

```
use Emgag\Flysystem\Tempdir;
$fs = new Tempdir($prefix = '', $tempdir = null, $destruct = true);
// fully qualified FS path
$fsPath = $fs->getPath();
```

or as Flysystem Adapter:

```
use Emgag\Flysystem\TempdirAdapter;
use League\Flysystem\Filesystem;

$adapter = new TempdirAdapter($prefix = '', $tempdir = null, $destruct = true);

$filesystem = new Filesystem($adapter);
// fully qualified FS path
$fsPath = $adapter->getPath();
```

License
-------

[](#license)

flysystem-tempdir is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 88.6% 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 ~514 days

Recently: every ~207 days

Total

6

Last Release

1446d ago

Major Versions

v0.1 → v1.0.02020-02-22

v1.0.1 → v2.0.02021-04-03

v2.0.0 → v3.0.02022-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/35a34580a28286ae22173cc8f34f42699d846067c976e8e39fdc23b8ad0cf44a?d=identicon)[emgag](/maintainers/emgag)

---

Top Contributors

[![maetthu](https://avatars.githubusercontent.com/u/1193955?v=4)](https://github.com/maetthu "maetthu (31 commits)")[![jamesdordoy](https://avatars.githubusercontent.com/u/19800113?v=4)](https://github.com/jamesdordoy "jamesdordoy (3 commits)")[![sidz](https://avatars.githubusercontent.com/u/1302230?v=4)](https://github.com/sidz "sidz (1 commits)")

---

Tags

flysystemflysystem-adapterphptempdirtemporary

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/emgag-flysystem-tempdir/health.svg)

```
[![Health](https://phpackages.com/badges/emgag-flysystem-tempdir/health.svg)](https://phpackages.com/packages/emgag-flysystem-tempdir)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40129.5M87](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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