2017 © Pedro Peláez
 

library twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

image

techwilk/twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

  • Sunday, December 10, 2017
  • by TechWilk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 668 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Slim CSRF (extension for TWIG)

Total Downloads Latest Stable Version License, (*1)

TWIG extension to expose Slim CSRF values in templates. Initially copied from the example in the Slim CSRF readme to this repo to allow installation through composer, though modifications may have since been made., (*2)

Installation

  1. Install through composer.
composer require techwilk/twig-slim-csrf
  1. Then pass in an instance of \Slim\Csrf\Guard:

``` php $guard = new \Slim\Csrf\Guard(); $slimCsrf = new \TechWilk\Twig\Extension\SlimCsrf($guard); $twig->addExtension($slimCsrf);, (*3)


## Use Use as a standard twig properties: ``` twig <input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}"> <input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">

The Versions

10/12 2017

dev-master

9999999-dev https://github.com/TechWilk/twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

  Sources   Download

MIT

The Requires

 

by Christopher Wilkinson

twig extension key value csrf globals

10/12 2017

v1.0.2

1.0.2.0 https://github.com/TechWilk/twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

  Sources   Download

MIT

The Requires

 

by Christopher Wilkinson

twig extension key value csrf globals

06/12 2017

v1.0.1

1.0.1.0 https://github.com/TechWilk/twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

  Sources   Download

MIT

The Requires

 

by Christopher Wilkinson

twig extension key value csrf globals

06/12 2017

v1.0

1.0.0.0 https://github.com/TechWilk/twig-slim-csrf

TWIG extension to expose Slim CSRF values in templates.

  Sources   Download

MIT

The Requires

 

by Christopher Wilkinson

twig extension key value csrf globals