jmbtechnologylimited / twigextensions
Twig Extensions.
Installs: 2 213
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.0.0
- misd/linkify: 1.1.*
- twig/twig: 2.*
This package is auto-updated.
Last update: 2024-11-17 09:31:54 UTC
README
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.