Download the PHP package hexmedia/time-formatter-bundle without Composer
On this page you can find all versions of the php package hexmedia/time-formatter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hexmedia/time-formatter-bundle
More information about hexmedia/time-formatter-bundle
Files in hexmedia/time-formatter-bundle
Download hexmedia/time-formatter-bundle
More information about hexmedia/time-formatter-bundle
Files in hexmedia/time-formatter-bundle
Vendor hexmedia
Package time-formatter-bundle
Short Description Symfony2 extension to presenting time in seconds
License MIT
Homepage http://github.com/Hexmedia/time-formatter
Package time-formatter-bundle
Short Description Symfony2 extension to presenting time in seconds
License MIT
Homepage http://github.com/Hexmedia/time-formatter
Please rate this library. Is it a good library?
Informations about the package time-formatter-bundle
TimeFormatter Symfony Bundle
This is a Bundle for Symfony2 Framework where you can easli convert a datetime/timestamp to distance of time in words.
By example
{{ var.data|time_formatter }}
Outputs
day ago
Installation for Symfony2
1) Update your composer.json
or use composer's require command:
composer require Hexmedia/TimeFormatterBundle:dev-master
2) Update AppKernel
Usage
To display distance of time in words between a date and current date:
{{ var.data|time_formatter }}
To display distance of time between two custom dates you should use
{{ var.data|time_formatter(message.updated) }}
All versions of time-formatter-bundle with dependencies
PHP Build Version
Package Version
The package hexmedia/time-formatter-bundle contains the following files
Loading the files please wait ....