Download the PHP package tourze/easy-admin-file-size-field-bundle without Composer
On this page you can find all versions of the php package tourze/easy-admin-file-size-field-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/easy-admin-file-size-field-bundle
More information about tourze/easy-admin-file-size-field-bundle
Files in tourze/easy-admin-file-size-field-bundle
Package easy-admin-file-size-field-bundle
Short Description A Symfony bundle that provides a file size field for EasyAdmin, automatically formatting byte values into human-readable formats
License MIT
Informations about the package easy-admin-file-size-field-bundle
EasyAdmin File Size Field Bundle
中文
A Symfony bundle that provides a file size field for EasyAdmin, automatically formatting byte values into human-readable formats (KB, MB, GB, etc.).
Features
- Automatic formatting: Converts raw byte values into human-readable formats (B, KB, MB, GB, TB)
- Twig integration: Provides a
format_bytesfilter for use in templates - Easy integration: Works seamlessly with EasyAdmin's field system
- Customizable: Supports all standard EasyAdmin field options
Installation
Install the bundle using Composer:
Quick Start
In your EasyAdmin CRUD controller, use the FileSizeField to display file sizes:
Usage
In EasyAdmin Controllers
In Twig Templates
You can also use the format_bytes filter directly in your Twig templates:
Advanced Usage
Custom Formatting Options
The FileSizeField supports additional configuration options:
Form Type Integration
You can also use the form type directly in your forms:
Configuration
The bundle registers itself automatically when installed. No additional configuration is required.
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
- EasyAdmin 4.0 or higher
License
This bundle is released under the MIT license. See the LICENSE file for details.
All versions of easy-admin-file-size-field-bundle with dependencies
easycorp/easyadmin-bundle Version ^4
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/expression-language Version ^7.3
symfony/form Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/messenger Version ^7.3
symfony/options-resolver Version ^7.3
symfony/property-access Version ^7.3
symfony/string Version ^7.3
symfony/twig-bundle Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/symfony-dependency-service-loader Version 1.0.*
twig/twig Version ^3.21