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

ActiveLibrary

jaypha/jayponents-twig
======================

Twig adaptor for Jayponents

v0.1.2(7y ago)05BSL-1.0PHPPHP ^5.4 || ^7

Since Jan 30Pushed 7y agoCompare

[ Source](https://github.com/jaypha/jayponents-twig)[ Packagist](https://packagist.org/packages/jaypha/jayponents-twig)[ RSS](/packages/jaypha-jayponents-twig/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Jayponents Twig
===============

[](#jayponents-twig)

Written by Jason den Dulk

A template engine adaptor to enable Twig useable with Jayponents.

Requirements
------------

[](#requirements)

PHP v5.4.0 or greater. Jayponents Twig

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

[](#installation)

```
composer require jaypha/jayponents-twig

```

Usage
-----

[](#usage)

Create a Twig Engine as normal. Create an engine adaptor and set the template adaptor in Component.

### Examples

[](#examples)

```
use Jaypha\Jayponents\Component;

$loader = new Twig_Loader_Filesystem(__DIR__);
$twig = new Twig_Environment($loader);

$adaptor = new TwigEngineAdaptor($twig);

// Can make the template adaptor the default for all components.
Component::setDefaultEngine($adaptor);

// Can assign template adaptor to individual components.
$component = new Component();
$component->setEngine($adaptor);

```

Caveat
------

[](#caveat)

For a jayponent component to display properly, you need to turn autoescape off.

### Example

[](#example)

```
{% autoescape false %}
{{ content }}
{% endautoescape %}

```

License
-------

[](#license)

Copyright (C) 2017-9 Jaypha.
Distributed under the Boost Software License, Version 1.0.
See [http://www.boost.org/LICENSE\_1\_0.txt](http://www.boost.org/LICENSE_1_0.txt)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~13 days

Total

3

Last Release

2631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ca39c239f426fd20c6348188dc7cf2b2ff3783ebb5d44bd886572a8ec53b24f?d=identicon)[jaypha](/maintainers/jaypha)

---

Top Contributors

[![jaypha](https://avatars.githubusercontent.com/u/1052990?v=4)](https://github.com/jaypha "jaypha (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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