2017 © Pedro Peláez
 

symfony-bundle twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

image

dms/twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  • Saturday, October 14, 2017
  • by rdohms
  • Repository
  • 2 Watchers
  • 16 Stars
  • 82,276 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 6 Forks
  • 1 Open issues
  • 14 Versions
  • 13 % Grown

The README.md

DMSTwigExtensionBundle

This bundle leverages a collection of Fabien Potencier's Twig Extensions for use in your application., (*1)

Extensions

Fabien's "Twig Extensions"

Available at Fabien's repository these extensions are considered useful but do not belong in the Core of Twig, so they have been moved to this separate repository, they are:, (*2)

  • Text: truncate and wordwrap filter
  • Debug: retrieves the token parser
  • Intl: localized date filter
  • i18n: trans filter and block (this extension conflicts with standard Symfony translator, so it is off by default, see Usage below.)

Further documentation is available in the repository., (*3)

DMS Extensions

These are custom extensions which I find myself writing over and over for new projects., (*4)

  • Textual Date: converts timestamp into dates like: 2 days ago (docs)

Installing

Simply run this, (*5)

composer require dms/twig-extension-bundle

Load the bundle in your AppKernel, (*6)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new DMS\Bundle\TwigExtensionBundle\DMSTwigExtensionBundle(),
    );
}

Usage

To control which extensions should be enabled, you can optionally add configuration settings in app/config.yml:, (*7)

# Default settings
dms_twig_extension:
    fabpot:
        array: true
        date: true
        i18n: false
        intl: true
        text: true
    dms:
        textual_date: true
        pad_string: true

Extensions set to false will not be loaded. Please refer to the extensions documentation for detailed usage on each one., (*8)

The Versions

14/10 2017

dev-master

9999999-dev https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

19/08 2017

v2.1.0

2.1.0.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

05/06 2017

dev-no-named-arguments

dev-no-named-arguments https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

15/01 2017

v2.0

2.0.0.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

06/04 2016

1.2.3

1.2.3.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

03/04 2016

dev-analysis-XNA54e

dev-analysis-XNA54e https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

02/04 2016

dev-analysis-8KZNbQ

dev-analysis-8KZNbQ https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

23/10 2015

1.2.2

1.2.2.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

27/08 2015

v1.2.1

1.2.1.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

04/04 2013

v1.2.0

1.2.0.0 https://github.com/rdohms/DMSTwigExtensionBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

30/01 2013

v1.1.1

1.1.1.0 https://github.com/rdohms/DMSTwigExtensionsBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

24/01 2013

v1.1.0

1.1.0.0 https://github.com/rdohms/DMSTwigExtensionsBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig bundle symfony twig extension dms fabpot

30/11 2012

v1.0.1

1.0.1.0 https://github.com/rdohms/DMSTwigExtensionsBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

twig bundle symfony twig extension dms fabpot

29/11 2012

v1.0.0

1.0.0.0 https://github.com/rdohms/DMSTwigExtensionsBundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

  Sources   Download

MIT

The Requires

 

twig bundle symfony twig extension dms fabpot