Looking to hire Laravel developers? Try LaraJobs

laravel-twig maintained by synergitech

Description
This library integrates Twig with the standard Laravel 5 view framework.
Last update
2018/11/02 17:28 (dev-master)
License
Downloads
74
Tags

Comments
comments powered by Disqus

Laravel Twig

In active development, please do not report issues until the project is considered stable.

This package integrates Twig with the standard Laravel 5 view framework. The package is based on TwigBridge by Rob Crowe but has been modified and refactored for our requirements.

Install

First, install the package using Composer:

composer require synergitech/laravel-twig

Next, export the configuration:

php artisan vendor:publish --provider="SynergiTech\Twig\TwigServiceProvider"

Extensions

Once the configration is exported, you can enable third party extensions or add your own to the list of enabled extensions.

Extensions Included

  • Spatie Laravel Permission (Added role, hasrole, hasanyrole and hasallroles functions.)

Usage

Once the package is installed and configured to your liking, you're good to go. Start creating your templates as .twig files and the package will render and cache your templates.

Todo

  • Documentation throughout
  • Further refactoring
  • Unit testing