PHPackages                             fenom/storage - 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. fenom/storage

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

fenom/storage
=============

Fenom extension: store data in fenom

3.1.0(2mo ago)345.2k1BSD-3PHPPHP &gt;=8.2

Since Jan 26Pushed 2mo ago4 watchersCompare

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

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

Data storage for Fenom
======================

[](#data-storage-for-fenom)

Install
=======

[](#install)

Use composer:

```
{
    "require": {
        "fenom/storage": "^3.1.0"
    }
}
```

Setup
=====

[](#setup)

Add trait into your Fenom class:

```
class MyFenom extends \Fenom {
    use \Fenom\StorageTrait;
}
```

Use
===

[](#use)

```
// set variable
$fenom->assign('var_name', $value);

// set variable by reference
$fenom->assignByRef('var_name', $value);

// set value by key in array
$fenom->assignKey('matrix', 'row1', 'value1');

// append variable to tail of array
$fenom->append('var_name', $value);

// prepend variable to head of array
$fenom->prepend('var_name', $value);

// get all stored variables
$vars = $fenom->getVars();

// set all variables as single array (merge with existing)
$fenom->assignAll($vars);

// set all variables (replace existing)
$fenom->assignAll($vars, false);

// remove all variables
$fenom->resetVars();

// fetch template to string
$html = $fenom->fetch($template_name);

// display template
$fenom->display($template_name);

// pipe template output through callback
$fenom->pipe($template_name, function ($buffer) {
    return strtoupper($buffer);
});
```

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance86

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.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 ~820 days

Recently: every ~1026 days

Total

6

Last Release

70d ago

Major Versions

1.2.0 → 3.1.02026-04-24

PHP version history (2 changes)1.0.0PHP &gt;=5.4.8

3.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/135c5c250b5bf3601bec3f76db32610c07970441b96a557d0a7a767187912511?d=identicon)[bzick](/maintainers/bzick)

---

Top Contributors

[![bzick](https://avatars.githubusercontent.com/u/345384?v=4)](https://github.com/bzick "bzick (9 commits)")[![maxisoft-git](https://avatars.githubusercontent.com/u/2070199?v=4)](https://github.com/maxisoft-git "maxisoft-git (1 commits)")[![sleuthhound](https://avatars.githubusercontent.com/u/1821565?v=4)](https://github.com/sleuthhound "sleuthhound (1 commits)")

---

Tags

storagestorefenomassign

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fenom-storage/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k679.9M2.5k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[google/cloud

Google Cloud Client Library

1.2k16.7M57](/packages/google-cloud)[qiniu/php-sdk

Qiniu Resource (Cloud) Storage SDK for PHP

8093.1M248](/packages/qiniu-php-sdk)[sylius/resource-bundle

Resource component for Sylius.

23610.8M235](/packages/sylius-resource-bundle)[microsoft/azure-storage-common

This project provides a set of common code shared by Azure Storage Blob, Table, Queue and File PHP client libraries.

4318.0M6](/packages/microsoft-azure-storage-common)

PHPackages © 2026

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