PHPackages                             vliz/php-twig-templating-client - 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. vliz/php-twig-templating-client

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

vliz/php-twig-templating-client
===============================

A templating client wrapper around Twig with extended functionality

1.0.2(7mo ago)0140[1 issues](https://github.com/vlizBE/php-twig-templating-client/issues)MITPHPPHP &gt;=8.2

Since Mar 26Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/vlizBE/php-twig-templating-client)[ Packagist](https://packagist.org/packages/vliz/php-twig-templating-client)[ RSS](/packages/vliz-php-twig-templating-client/feed)WikiDiscussions master Synced 1mo ago

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

Templating Client
=================

[](#templating-client)

A PHP wrapper around Twig with extended functionality for template formatting.

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

[](#installation)

With SSH authentication: Add the private repository to your composer.json:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:vlizBE/templating-client.git"
        }
    ]
}
```

Require the package:

```
composer require vliz/templating-client:dev-master
```

Usage
-----

[](#usage)

```
use Vliz\TemplatingClient\TemplatingClient;

new TemplatingClient($pathToYourTemplatesFolder);
echo $this->templatingClient->render($templateFileName, $dataObject);
```

Twig filter and function examples

```
//function baseref returns a base url, set by .env BASE_REF
//function uritexpand expands a uri with a given fragment using https://github.com/rize/UriTemplate
@base  .

//filter xsd returns a properly formatted ttl value for types 'boolean', 'integer', 'double', 'date',
//'datetime', 'anyuri', 'string', 'gyear', 'year', 'yyyy', 'gyearmonth', 'year-month', 'yyyy-mm',
//'auto-date', 'auto-number', 'auto-any', 'auto'
dct:title {{ _.refrec.StandardTitle | xsd("xsd:string") }} ;

//filter uri escapes, trims and returns a uri
schema:url {{url.URL | trim | uri }} ;

//filter fixUrl adds protocol to url
{{url.URL}}
```

See tests/demo.twig for more examples

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~92 days

Total

3

Last Release

235d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8001940?v=4)[Agnes Felicia](/maintainers/vliz)[@vliz](https://github.com/vliz)

---

Top Contributors

[![hyperman3](https://avatars.githubusercontent.com/u/175705914?v=4)](https://github.com/hyperman3 "hyperman3 (10 commits)")[![MilanLamote](https://avatars.githubusercontent.com/u/80511992?v=4)](https://github.com/MilanLamote "MilanLamote (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vliz-php-twig-templating-client/health.svg)

```
[![Health](https://phpackages.com/badges/vliz-php-twig-templating-client/health.svg)](https://phpackages.com/packages/vliz-php-twig-templating-client)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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