2.5.0
版本发布时间: 2022-12-15 06:51:26
dereuromark/cakephp-tools最新发布版本:3.0.0(2023-10-30 18:34:14)
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)
.