PHPackages                             typomedia/flatfile - 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. typomedia/flatfile

ActiveLibrary

typomedia/flatfile
==================

Flatfile Storage

1.0.0(4y ago)153MITPHPPHP &gt;=7.2

Since Jul 12Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Flatfile Database
=================

[](#flatfile-database)

Basic Object Storage System for small data.

Do not use 'Flatfile' for storing big data!

The Library is [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-4](https://www.php-fig.org/psr/psr-4/), [PSR-12](https://www.php-fig.org/psr/psr-12/) compliant.

Requirements
------------

[](#requirements)

- `>= PHP 7.2`

Install
-------

[](#install)

```
composer require typomedia/flatfile

```

Usage
-----

[](#usage)

```
use Typomedia\Flatfile\Flatfile;

$data = [
    'Moretti' => [
        'name' => 'Style Ale',
        'style' => 'European Amber Lager',
        'alcohol' => '9.1%'
    ]
];

$flatfile = new Flatfile('test.json');
$key = md5(serialize($data));

$flatfile->set((object)$data, $key);
$flatfile->get($key);
$flatfile->first();
$flatfile->last();
$flatfile->keys();
$flatfile->find('name', 'Style Ale');
$flatfile->delete($key);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1768d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5276515?v=4)[Philipp Speck](/maintainers/typomedia)[@typomedia](https://github.com/typomedia)

---

Top Contributors

[![typomedia](https://avatars.githubusercontent.com/u/5276515?v=4)](https://github.com/typomedia "typomedia (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/typomedia-flatfile/health.svg)

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

PHPackages © 2026

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