PHPackages                             spe/filesize-extension-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. spe/filesize-extension-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

spe/filesize-extension-bundle
=============================

Twig filter for human readable filesize

2.0.0(6y ago)11477.6k↓55.4%6[3 issues](https://github.com/loonkwil/filesize-extension-bundle/issues)2PHPPHP &gt;=7

Since Sep 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/loonkwil/filesize-extension-bundle)[ Packagist](https://packagist.org/packages/spe/filesize-extension-bundle)[ Docs](https://github.com/loonkwil/filesize-extension-bundle)[ RSS](/packages/spe-filesize-extension-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (5)Used By (2)

Filesize Extension
==================

[](#filesize-extension)

[![Build Status](https://camo.githubusercontent.com/dea4fc5c7deb2a70f537b3d812e9acb33c93315810b99887f96212819cb6609d/68747470733a2f2f7472617669732d63692e6f72672f6c6f6f6e6b77696c2f66696c6573697a652d657874656e73696f6e2d62756e646c652e706e67)](https://travis-ci.org/loonkwil/filesize-extension-bundle)

Install
-------

[](#install)

### Symfony 4.x, 5.x

[](#symfony-4x-5x)

```
composer require "spe/filesize-extension-bundle" "~2.0.0"
```

### Symfony 2.x, 3.x

[](#symfony-2x-3x)

```
composer require "spe/filesize-extension-bundle" "~1.0.0"
```

app/AppKernel.php:

```
$bundles = array(
    // ...
    new SPE\FilesizeExtensionBundle\SPEFilesizeExtensionBundle(),
    // ...
);
```

Usage
-----

[](#usage)

```
{{ file.size|readable_filesize }} {# 123.45 KB #}
{{ file.size|readable_filesize(0) }} {# 123 KB #}
{{ file.size|readable_filesize(0, '') }} {# 123KB #}
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~669 days

Total

4

Last Release

2278d ago

Major Versions

0.2.0 → 1.0.02015-12-08

1.0.0 → 2.0.02020-03-14

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

2.0.0PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dd8dc52b58b36e9430a82bfa7f2271bf73175472ff7a76cdd5e861e9b32df71?d=identicon)[loonkwil](/maintainers/loonkwil)

---

Top Contributors

[![loonkwil](https://avatars.githubusercontent.com/u/1401202?v=4)](https://github.com/loonkwil "loonkwil (21 commits)")[![hubgit](https://avatars.githubusercontent.com/u/14294?v=4)](https://github.com/hubgit "hubgit (1 commits)")[![tgalopin](https://avatars.githubusercontent.com/u/1651494?v=4)](https://github.com/tgalopin "tgalopin (1 commits)")

### Embed Badge

![Health badge](/badges/spe-filesize-extension-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/spe-filesize-extension-bundle/health.svg)](https://phpackages.com/packages/spe-filesize-extension-bundle)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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