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

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

harmstyler/twig-extensions
==========================

A set of twig extensions

1.0.0(11y ago)019MITPHP

Since May 30Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Twig Extensions
===============

[](#twig-extensions)

A work in progress set of Twig Extensions

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

[](#installation)

These Twig Extensions are registered at packagist as harmstyler/twig-extensions and can be easily installed using composer. Alternatively you can simply download the .zip and copy the file from the 'src' folder.

The extensions are designed to be used with Symfony

```
services:
  twig.extension.date:
    class: HarmsTyler\Twig\LinkToExtension
    tags:
      - { name: twig.extension }
```

### LinkTo Extension

[](#linkto-extension)

Extension will build out a link, requires link copy and path name to work. Optional html options can be sent in an array.

```
{{ link_to($link_copy, { 'path_name': { 'id': 1 } }, {'data-method': 'get', 'class': 'my-class'}) }}
```

will create

```
Upcoming Event
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4362d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/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

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)

PHPackages © 2026

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