Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

SynergiTech/laravel-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This library integrates Twig with the standard Laravel 5 view framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages