2017 © Pedro Peláez
 

library twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

image

genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  • Monday, December 26, 2016
  • by Genstor
  • Repository
  • 1 Watchers
  • 2 Stars
  • 829 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a string, (*1)

Installation

Install via composer:, (*2)

composer require genstor/twig-age-extension:@dev

Add the following to your services.yml file:, (*3)

services:
    twig.extension.date:
        class: Genstor\Twig\AgeExtension
        tags:
            - { name: twig.extension }

Usage

{{ user.birthdate | age }}

The Versions

26/12 2016

dev-develop

dev-develop https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

dev-master

9999999-dev https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

1.0.4

1.0.4.0 https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

1.0.3

1.0.3.0 https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

1.0.2

1.0.2.0 https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

1.0.1

1.0.1.0 https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age

26/12 2016

1.0.0

1.0.0.0 https://github.com/genstor/twig-age-extension

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

  Sources   Download

MIT

The Requires

 

templating twig extension date age