Download the PHP package exts/twigulence without Composer
On this page you can find all versions of the php package exts/twigulence. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download exts/twigulence
More information about exts/twigulence
Files in exts/twigulence
Download exts/twigulence
More information about exts/twigulence
Files in exts/twigulence
Vendor exts
Package twigulence
Short Description Twig Integration for the Opulence PHP 7.0 Framework
License MIT
Package twigulence
Short Description Twig Integration for the Opulence PHP 7.0 Framework
License MIT
Please rate this library. Is it a good library?
Informations about the package twigulence
About
Twigulence is a bootstrapper for the Opulence PHP 7.0 Framework.
Installation
composer require exts/twigulence --no-dev
- If you're running a fresh [
Opulence/Project
]() then I recommend heading into your/PROJECT_NAME/config/http
folder and find thebootstrappers.php
file - Remove the
ViewFunctionsBootstrapper::class
andViewBootstrapper::class
from this file and replace those with our Bootstrapper classTwigulence\Bootstrapper::class
- To test add a twig file to your
resources/views
folder then in your controller call$this->viewFactory->createView
with the file name excluding the file extension and you can use the setVars to set custom values to the view object and it'll pass that data to the twig template.
For now I hope this helps you get twig working with Opulence
TODO
- Working on the ability to make it easy to customize the bootstrapper, for now your best bet is to extend the Bootstrapper class and overwrite the
getTwigInstance
method.
All versions of twigulence with dependencies
PHP Build Version
Package Version
The package exts/twigulence contains the following files
Loading the files please wait ....