2017 © Pedro Peláez
 

library phalcon-twig

Twig View Handler to Phalcon PHP

image

vinyvicente/phalcon-twig

Twig View Handler to Phalcon PHP

  • Wednesday, May 9, 2018
  • by vinyvicente
  • Repository
  • 3 Watchers
  • 4 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

phalcon-twig

Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads composer.lock, (*1)

Requirements

PHP >= 5.6
Phalcon >= 3.x

Install

composer require vinyvicente/phalcon-twig

Configuration

  • Register in your DI configuration view, registering new view engine.

$di = new \Phalcon\Di\FactoryDefault(); $di['view'] = function () { $view = new View(); $view->setViewsDir('app/views/'); $view->registerEngines([ View\Engine\Twig::DEFAULT_EXTENSION => function ($view, $di) { return new View\Engine\Twig($view, $di, [ 'cache' => __DIR__ . '/app/cache/', ]); } ]); return $view; };

Important

See Twig Docs: http://twig.sensiolabs.org/documentation

Enjoy!, (*2)

The Versions

09/05 2018

dev-feature/improvements

dev-feature/improvements

Twig View Handler to Phalcon PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius

04/04 2018

dev-master

9999999-dev

Twig View Handler to Phalcon PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius

04/04 2018

v1.1

1.1.0.0

Twig View Handler to Phalcon PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius

27/03 2017

v1.0

1.0.0.0

Twig View Handler to Phalcon PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius