PHPackages                             madison/filesize - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. madison/filesize

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

madison/filesize
================

Twig extension to convert bytes to human readable strings and vice versa.

16PHP

Since Aug 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mikemadisonweb/FilesizeTwigExtension)[ Packagist](https://packagist.org/packages/madison/filesize)[ RSS](/packages/madison-filesize/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twig filesize extension
=======================

[](#twig-filesize-extension)

Twig extension to convert bytes to human readable strings and vice versa.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8232569?v=4)[Mikhail Bakulin](/maintainers/mikemadisonweb)[@mikemadisonweb](https://github.com/mikemadisonweb)

---

Tags

filesizehuman-readable-representationshuman-readable-unitstwig-extension

### Embed Badge

![Health badge](/badges/madison-filesize/health.svg)

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.2k548.2M412](/packages/brick-math)[symfony/asset

Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files

3.2k184.6M1.2k](/packages/symfony-asset)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62930.2M306](/packages/scssphp-scssphp)[spatie/geocoder

Geocoding addresses to coordinates

8555.2M20](/packages/spatie-geocoder)[swaggest/json-diff

JSON diff/rearrange/patch/pointer library for PHP

24323.7M22](/packages/swaggest-json-diff)

PHPackages © 2026

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