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

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

pccomponentes/apm-twig
======================

Elastic APM for Twig

0.1.1(5y ago)05.5kMITPHPPHP ^7.4

Since May 28Pushed 5y ago5 watchersCompare

[ Source](https://github.com/PcComponentes/apm-twig)[ Packagist](https://packagist.org/packages/pccomponentes/apm-twig)[ RSS](/packages/pccomponentes-apm-twig/feed)WikiDiscussions master Synced 1mo ago

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

Elastic APM for Twig
====================

[](#elastic-apm-for-twig)

This library supports Span traces of [Twig](https://github.com/twigphp/Twig) renderings.

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

[](#installation)

1. Install via [composer](https://getcomposer.org/)

    ```
    composer require pccomponentes/apm-twig
    ```

Usage
-----

[](#usage)

In all cases, an already created instance of [ElasticApmTracer](https://github.com/zoilomora/elastic-apm-agent-php) is assumed.

### Service Container (Symfony)

[](#service-container-symfony)

```
twig.extension.apm:
  class: PcComponentes\ElasticAPM\Twig\Extension\ApmExtension
  arguments:
    $profile: '@twig.profile'
    $elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.
  public: false
  tags:
    - { name: twig.extension }
```

License
-------

[](#license)

Licensed under the [MIT license](http://opensource.org/licenses/MIT)

Read [LICENSE](LICENSE) for more information

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

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 ~25 days

Total

2

Last Release

2156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c4eb3322c15a9344e9c086a7de11c3204bf5aab5321b562bf9193f5ee8cd420?d=identicon)[zoilomora](/maintainers/zoilomora)

---

Top Contributors

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

---

Tags

apmelasticsearchtwigtwig-extension

### Embed Badge

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

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

###  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)
