PHPackages                             betorcs/file-store - 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. betorcs/file-store

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

betorcs/file-store
==================

Library to manage file by key

v1.0.01(3y ago)0161MITPHPPHP ^7.1

Since Jan 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/betorcs/file-store)[ Packagist](https://packagist.org/packages/betorcs/file-store)[ RSS](/packages/betorcs-file-store/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

### FILE STORE

[](#file-store)

it's a shave implementation of file store based in keys, useful to handle temporary files.

### Installation

[](#installation)

Install using [composer](https://getcomposer.org/).

```
composer require betorcs/file-store
```

### Example usage

[](#example-usage)

```
$fileContent = ...

$baseDir = '/tmp';

$fileStore = new \Betorcs\LocalFileStore($baseDir);

// Saves a file content with expiration of 120 seconds, then returns a key.
$key = $fileStore->store($fileContent, 120);

// Deletes all expired contents
$fileStore->deleteAllExpired();

// Checkes if exists a non expired content
if ($fileStore->exists($key))
{
    // It's TRUE if exists
}

// Retrieve a content from given key, if it exists and non expired
$content = $fileStore->restore($key);

// Deletes all contents
$fileStore->clean();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

1216d ago

### Community

Maintainers

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

---

Top Contributors

[![arcasolutions-sc](https://avatars.githubusercontent.com/u/63244913?v=4)](https://github.com/arcasolutions-sc "arcasolutions-sc (5 commits)")

### Embed Badge

![Health badge](/badges/betorcs-file-store/health.svg)

```
[![Health](https://phpackages.com/badges/betorcs-file-store/health.svg)](https://phpackages.com/packages/betorcs-file-store)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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