Skip to content

JMB-Technology-Limited/Twig-Extensions

Repository files navigation

JMB Technology Limited Twig Extensions

A set of Twig extensions.

V1 of Twig Extensions is for Twig V1. V2 is for Twig V2.

LinkInfo

Returns a shorterned version of a link, the domain name only.

Linkify

This simply wraps Misd\Linkify\Linkify which provides all kind of options for adding attributes and a callback.

SameDay

Returns a boolean indicating if two date times are on the same day.

TimeZone

Can convert a DateTime into the timezone of your choice.