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

ActiveLibrary

stasis/ext-twig
===============

Twig extension for Stasis

0.1.0(yesterday)01↑2900%MITPHPPHP ^8.4CI passing

Since Mar 22Pushed todayCompare

[ Source](https://github.com/stasis-php/ext-twig)[ Packagist](https://packagist.org/packages/stasis/ext-twig)[ Docs](https://github.com/stasis-php/ext-twig)[ RSS](/packages/stasis-ext-twig/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Stasis Twig Extension
=====================

[](#stasis-twig-extension)

Stasis Twig Extension is an adapter that integrates [Twig](https://twig.symfony.com/) templating engine with [Stasis](https://github.com/stasis-php/stasis). Extension integrates with a Stasis routing system and adds `route_path` twig function that returns a path to a page.

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

[](#installation)

Install the latest version with [Composer](https://getcomposer.org/):

```
composer require stasis-php/ext-twig
```

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

[](#configuration)

Register extension in your `stasis.php` configuration file. For example:

```
