Skip to content

Modernized code, PHP 8.1+ & New "duration" capability

Compare
Choose a tag to compare
@weaverryan weaverryan released this 31 Jul 18:25
· 38 commits to main since this release

Hi!

This release modernizes the codebase, increases the minimum PHP version to 8.1, adds a new "duration" capability and also breaks backwards compatibility (BC) in a few minor ways (hence the new major version!).

PR's

CHANGELOG

  • Modernize/simplify the code base
  • Require PHP 8.1+
  • Remove symfony/templating integration
  • Make DateTimeFormatter final
  • Remove DateTimeFormatter::getDiffMessage()
  • Remove DateTimeFormatter::getDateTimeObject()
  • Remove DateTimeFormatter::getEmptyDiffMessage()
  • Add time_diff Twig filter as an alias for ago
  • Add DateTimeFormatter::formatDuration() and duration Twig filter

Full Diff: v1.20.0...v2.0.0

Have fun!