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

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

phpbenchmarks/twig-common
=========================

2.1.0(8y ago)31123[1 PRs](https://github.com/phpbenchmarks/twig-common/pulls)proprietaryPHP

Since Apr 26Pushed 6y agoCompare

[ Source](https://github.com/phpbenchmarks/twig-common)[ Packagist](https://packagist.org/packages/phpbenchmarks/twig-common)[ RSS](/packages/phpbenchmarks-twig-common/feed)WikiDiscussions twig\_2\_hello-world Synced 2d ago

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

 [![](https://camo.githubusercontent.com/87570f78dc291d2bf670ce1f762efe02a70877c7923044c626f2df5213f8c3d6/687474703a2f2f7777772e70687062656e63686d61726b732e636f6d2f696d616765732f6c6f676f5f6769746875622e706e67)](https://camo.githubusercontent.com/87570f78dc291d2bf670ce1f762efe02a70877c7923044c626f2df5213f8c3d6/687474703a2f2f7777772e70687062656e63686d61726b732e636f6d2f696d616765732f6c6f676f5f6769746875622e706e67)
 [www.phpbenchmarks.com](http://www.phpbenchmarks.com)

What is [www.phpbenchmarks.com](http://www.phpbenchmarks.com) ?
---------------------------------------------------------------

[](#what-is-wwwphpbenchmarkscom-)

You will find lot of benchmarks for PHP frameworks and template engines.

You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3.

What is this repository ?
-------------------------

[](#what-is-this-repository-)

It's benchmark common code for Twig benchmarks.

Switch branch to select your Twig major version and benchmark you want to see.

See all Twig benchmarked versions on [phpbenchmarks/twig](https://github.com/phpbenchmarks/twig).

You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html).

How versions works ?
--------------------

[](#how-versions-works-)

We do not follow semantic version for this repository. Here is an explanation about our versioning system:

`X` related to Twig major version (`1` Twig ^1, `2` Twig ^2)

`Y` benchmark type (`1` Hello World)

`Z` new version, not just bugfix and could contains BC

Benchmarks
----------

[](#benchmarks)

You can find all Twig benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/twig.html).

Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~34 days

Total

2

Last Release

2954d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14955522?v=4)[phpbenchmarks](/maintainers/phpbenchmarks)[@phpbenchmarks](https://github.com/phpbenchmarks)

---

Top Contributors

[![steevanb](https://avatars.githubusercontent.com/u/5063383?v=4)](https://github.com/steevanb "steevanb (2 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (1 commits)")

---

Tags

benchmarkphptemplatingtwig

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[symfony/ux-twig-component

Twig components for Symfony

22018.6M322](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M117](/packages/symfony-ux-live-component)

PHPackages © 2026

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