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

ActiveGplcart-module[Templating &amp; Views](/categories/templating)

gplcart/twig
============

A GPL Cart module that allows to render .twig templates

01PHP

Since Mar 10Pushed 8y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a7f20e41e9c0662cffa0c1701135427cf2691f6d24f5bb8ab87020368a9d143e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f747769672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/twig/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d8f6c219a8c6b162dd407b11d21c7b7b7d81b3b7636373ae3a45f80787ce31a9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f747769672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/twig/?branch=master)

Twig is a [GPL Cart](https://github.com/gplcart/gplcart) module that integrates [TWIG](https://twig.sensiolabs.org) template engine into your GPL Cart site. Essentially it tries to parse every template file with .twig extension

Custom TWIG functions added by this module:

- error()
- text()
- access()
- url()
- date()
- attributes()
- config()
- configTheme()
- teaser()
- filter()
- truncate()
- path()

See `\gplcart\core\Controller` for corresponding methods

**Installation**

This module requires 3-d party library which should be downloaded separately. You have to use [Composer](https://getcomposer.org) to download all the dependencies.

1. From your web root directory: `composer require gplcart/twig`. If the module was downloaded and placed into `system/modules` manually, run `composer update` to make sure that all 3-d party files are presented in the `vendor` directory.
2. Go to `admin/module/list` end enable the module
3. Optionally adjust settings on `admin/module/settings/twig`

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![gplcart](https://avatars.githubusercontent.com/u/16158956?v=4)](https://github.com/gplcart "gplcart (39 commits)")

---

Tags

ecommercegplcartgplcart-moduleshopping-carttwig

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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