2017 © Pedro Peláez
 

library twig-extensions

RUVENTS Twig Extensions

image

ruvents/twig-extensions

RUVENTS Twig Extensions

  • Wednesday, March 7, 2018
  • by RUVENTS
  • Repository
  • 4 Watchers
  • 1 Stars
  • 1,988 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 18 Versions
  • 58 % Grown

The README.md

RUVENTS Twig Extensions

Class Extension

Helps to work with objects, (*1)

instanceof(class_name) test

{% if object is instanceof('Namespace\\Class') %}
{% endif %}

Inflector Extension

Is useful for transforming strings. Internally uses the Doctrine Inflector library., (*2)

|underscorize filter

{{ 'aliceInChains'|underscorize }} {# prints: alice_in_chains #}
{{ 'AliceInChains'|underscorize }} {# prints: alice_in_chains #}

|classify filter

{{ 'alice_in_chains'|classify }} {# prints: AliceInChains #}
{{ 'aliceInChains'|underscorize }} {# prints: AliceInChains #}

|camelize filter

{{ 'alice_in_chains'|camelize }} {# prints: aliceInChains #}
{{ 'AliceInChains'|camelize }} {# prints: aliceInChains #}

|ucwords(delimiters=" \n\t\r\0\x0B-") filter

Uppercases words with configurable delimeters between words, (*3)

{{ 'hello sean'|ucwords }} {# prints: Hello Sean #}

The Versions

07/03 2018
03/08 2017
31/07 2017
31/07 2017

3.0.x-dev

3.0.9999999.9999999-dev

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

31/07 2017

3.1.0

3.1.0.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

26/06 2017

3.0.0

3.0.0.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

23/06 2017
23/06 2017

2.1.x-dev

2.1.9999999.9999999-dev

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

23/06 2017

2.0.x-dev

2.0.9999999.9999999-dev

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

23/06 2017

2.1.2

2.1.2.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

22/06 2017

2.1.1

2.1.1.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

25/03 2017

2.1.0

2.1.0.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

26/01 2017

2.0.2

2.0.2.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

27/10 2016

2.0.1

2.0.1.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

12/08 2016

2.0.0

2.0.0.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Valentin Udaltsov

01/08 2016

1.0.1

1.0.1.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

by Valentin Udaltsov

28/04 2016

1.0.0

1.0.0.0

RUVENTS Twig Extensions

  Sources   Download

MIT

The Requires

 

by Valentin Udaltsov