2017 © Pedro Peláez
 

symfony-bundle filesize-extension-bundle

Twig filter for human readable filesize

image

spe/filesize-extension-bundle

Twig filter for human readable filesize

  • Tuesday, December 8, 2015
  • by loonkwil
  • Repository
  • 1 Watchers
  • 8 Stars
  • 41,558 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

Filesize Extension

Build Status, (*1)

Install

Symfony 4.x, 5.x

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

Symfony 2.x, 3.x

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

app/AppKernel.php:, (*2)

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

Usage

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

The Versions

08/12 2015

dev-master

9999999-dev https://github.com/loonkwil/filesize-extension-bundle

Twig filter for human readable filesize

  Sources   Download

The Requires

 

by Peter Simon

08/12 2015

1.0.0

1.0.0.0 https://github.com/loonkwil/filesize-extension-bundle

Twig filter for human readable filesize

  Sources   Download

The Requires

 

by Peter Simon

27/07 2015

0.2.0

0.2.0.0 https://github.com/loonkwil/filesize-extension-bundle

Twig filter for human readable filesize

  Sources   Download

The Requires

 

by Peter Simon

14/09 2014

0.1.0

0.1.0.0 https://github.com/loonkwil/filesize-extension-bundle

Twig filter for human readable filesize

  Sources   Download

The Requires

 

by Peter Simon