Skip to content

2.5.0

Compare
Choose a tag to compare
@dereuromark dereuromark released this 14 Dec 22:51
· 234 commits to master since this release

Improvements

Localized datetime formatting

Added FrozenTime::formatLocalized() for PHP 8.1+ safe localized output of date(time) values.

Font icons

Added IconHelper::render() as way to display font icons now, deprecating FormatHelper::icon().
It now is able to serve the following icons out of the box and even side-by-side using prefixing (prefix:icon-name):

  • FontAwesome v4/v5/v6
  • BootstrapIcons
  • Material
  • Feather

But based on its DI nature, you can register any Icon class inside and serve any custom or even own icon font this way now.
Each Icon class has full control over the rendering of the HTML.

Using IconHelper::names() you can get a list of all font icons available in your PHP code.

Tip: Use IdeHelperExtra plugin to get full autocomplete for the icon names as input for render($name).