PHPackages                             xervice/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. xervice/twig

ActiveLibrary[Templating &amp; Views](/categories/templating)

xervice/twig
============

3.0.0(7y ago)04162MITPHPPHP &gt;=7.1.0

Since Jul 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xervice/twig)[ Packagist](https://packagist.org/packages/xervice/twig)[ RSS](/packages/xervice-twig/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (8)Used By (2)

Xervice: Twig

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/23fe459e7f736b7579a1102a2bc08ae344119b51cfaa66bb2e96da00fa097442/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786572766963652f747769672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xervice/twig/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/6b5665b1aa5ce6489dd2762ed79fbcf2a415ef076cabd06a0de40376004c75a2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786572766963652f747769672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xervice/twig/?branch=master)

Twig template engine implementation for xervice.

Installation
------------

[](#installation)

```
composer require xervice/twig

```

Configuration
-------------

[](#configuration)

To define twig paths, where to search for templates, you can share a PathProvider:

```
