PHPackages                             tourze/easy-admin-file-size-field-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. [Admin Panels](/categories/admin)
4. /
5. tourze/easy-admin-file-size-field-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

tourze/easy-admin-file-size-field-bundle
========================================

A Symfony bundle that provides a file size field for EasyAdmin, automatically formatting byte values into human-readable formats

1.0.0(6mo ago)0235MITPHPCI passing

Since May 7Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/easy-admin-file-size-field-bundle)[ Packagist](https://packagist.org/packages/tourze/easy-admin-file-size-field-bundle)[ RSS](/packages/tourze-easy-admin-file-size-field-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (25)Versions (5)Used By (0)

EasyAdmin File Size Field Bundle
================================

[](#easyadmin-file-size-field-bundle)

[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://php.net/)[![Symfony Version](https://camo.githubusercontent.com/cc09ac1aaf371c7f0df1288581138b3a237486f556ae6e0ed50330da04188680/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253545362e342d677265656e2e737667)](https://symfony.com/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c27a457659b89ee4f1f80f7995c559dd37f2051bde7167ad25791e5c5c92cc8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)](#)[![Code Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](#)

[English](README.md) | [中文](README.zh-CN.md)

A Symfony bundle that provides a file size field for EasyAdmin, automatically formatting byte values into human-readable formats (KB, MB, GB, etc.).

Features
--------

[](#features)

- **Automatic formatting**: Converts raw byte values into human-readable formats (B, KB, MB, GB, TB)
- **Twig integration**: Provides a `format_bytes` filter for use in templates
- **Easy integration**: Works seamlessly with EasyAdmin's field system
- **Customizable**: Supports all standard EasyAdmin field options

Installation
------------

[](#installation)

Install the bundle using Composer:

```
composer require tourze/easy-admin-file-size-field-bundle
```

Quick Start
-----------

[](#quick-start)

In your EasyAdmin CRUD controller, use the `FileSizeField` to display file sizes:

```
