PHPackages                             synergitech/laravel-twig - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. synergitech/laravel-twig

Abandoned → [synergitech/twigbridge](/?search=synergitech%2Ftwigbridge)ArchivedLibrary[Templating &amp; Views](/categories/templating)

synergitech/laravel-twig
========================

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

v0.0.4(7y ago)074MITPHPPHP &gt;=7.0.0

Since Jun 14Pushed 7y ago3 watchersCompare

[ Source](https://github.com/SynergiTech/laravel-twig)[ Packagist](https://packagist.org/packages/synergitech/laravel-twig)[ Docs](https://github.com/synergitech/laravel-twig)[ RSS](/packages/synergitech-laravel-twig/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Laravel Twig
============

[](#laravel-twig)

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

[](#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](https://github.com/rcrowe/TwigBridge) by [Rob Crowe](https://github.com/rcrowe) but has been modified and refactored for our requirements.

Install
-------

[](#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
----------

[](#extensions)

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

#### Extensions Included

[](#extensions-included)

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

Usage
-----

[](#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
----

[](#todo)

- Documentation throughout
- Further refactoring
- Unit testing

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

4

Last Release

2749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d69f33cc173ab9f35c67cb1bbaabeb0b705f983f65253393525ccfc539abc260?d=identicon)[SynergiTech](/maintainers/SynergiTech)

---

Top Contributors

[![harry-synergi](https://avatars.githubusercontent.com/u/44359670?v=4)](https://github.com/harry-synergi "harry-synergi (2 commits)")[![williamrenfrew](https://avatars.githubusercontent.com/u/12625062?v=4)](https://github.com/williamrenfrew "williamrenfrew (1 commits)")

---

Tags

laraveltwigview

### Embed Badge

![Health badge](/badges/synergitech-laravel-twig/health.svg)

```
[![Health](https://phpackages.com/badges/synergitech-laravel-twig/health.svg)](https://phpackages.com/packages/synergitech-laravel-twig)
```

###  Alternatives

[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[wyrihaximus/twig-view

Twig powered View for CakePHP

804.7M1](/packages/wyrihaximus-twig-view)[itstructure/laravel-grid-view

Grid view for laravel framework

2546.6k2](/packages/itstructure-laravel-grid-view)[delatbabel/viewpages

Support rendering/view of Laravel pages and templates from a database.

121.4k](/packages/delatbabel-viewpages)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
