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 today

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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

1270d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1232290?v=4)[betorcs](/maintainers/betorcs)[@betorcs](https://github.com/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

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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