PHPackages                             barrelstrength/sprout-active - 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. barrelstrength/sprout-active

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

barrelstrength/sprout-active
============================

Simplify navigation and URL-based logic in your templates.

2.2.0(6y ago)920.6k↓62.5%2[1 issues](https://github.com/barrelstrength/sprout-active/issues)MITPHP

Since Feb 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/barrelstrength/sprout-active)[ Packagist](https://packagist.org/packages/barrelstrength/sprout-active)[ RSS](/packages/barrelstrength-sprout-active/feed)WikiDiscussions v2 Synced 1mo ago

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

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

In an effort to reduce the number of packages we publicly maintain, Sprout Active will not be migrated to Craft 4. If you'd like to take the helm or take responsibility over maintaining the repository please reach out: .

---

Sprout Active
=============

[](#sprout-active)

Overview
--------

[](#overview)

Simplify navigation and URL-based logic in your templates.

Sprout Active makes it simple to control the active classname in your navigation or conditional content based on your URL segments or your full URL.

Usage
-----

[](#usage)

Sprout Active provides the `active` and `activeClass` Twig Filters to test for matching URL segments and output a class to make an element active.

The most simple version of these filters will match the first segment in the URL . If no match is found, they will return blank.

```
{{ active('about-us') }} {# Output if match: active #}

{{ activeClass('about-us') }} {# Output if match: class="active" #}

{{ activeClass(entry.slug) }}
```

See the documentation for more advanced use cases.

Documentation
-------------

[](#documentation)

See the [Sprout Website](https://sprout.barrelstrengthdesign.com/craft-plugins/active/docs) for documentation, guides, and additional resources.

Support
-------

[](#support)

- [Send a Support Ticket](https://sprout.barrelstrengthdesign.com/craft-plugins/request/support) via the Sprout Website.
- [Create an issue](https://github.com/barrelstrength/craft-sprout-active/issues) on Github.

[ ![](https://camo.githubusercontent.com/8d1d8cae93cf9f9f558a7ca440d5e34ea22c49d34195a12042cc08a9f991f71a/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f7370726f75742e62617272656c737472656e67746864657369676e2e636f6d2d6173736574732f636f6e74656e742f706c7567696e732f7370726f75742d69636f6e2e737667)](https://sprout.barrelstrengthdesign.com)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 87.1% 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 ~175 days

Recently: every ~368 days

Total

13

Last Release

1290d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2899039?v=4)[Barrel Strength](/maintainers/BarrelStrength)[@barrelstrength](https://github.com/barrelstrength)

---

Top Contributors

[![BenParizek](https://avatars.githubusercontent.com/u/309735?v=4)](https://github.com/BenParizek "BenParizek (54 commits)")[![patpohler](https://avatars.githubusercontent.com/u/854401?v=4)](https://github.com/patpohler "patpohler (3 commits)")[![jonnyasmar](https://avatars.githubusercontent.com/u/4197029?v=4)](https://github.com/jonnyasmar "jonnyasmar (2 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (1 commits)")[![eliias](https://avatars.githubusercontent.com/u/1222696?v=4)](https://github.com/eliias "eliias (1 commits)")[![pdaleramirez](https://avatars.githubusercontent.com/u/4172750?v=4)](https://github.com/pdaleramirez "pdaleramirez (1 commits)")

---

Tags

twigcraftcmsurlstwig-extension

### Embed Badge

![Health badge](/badges/barrelstrength-sprout-active/health.svg)

```
[![Health](https://phpackages.com/badges/barrelstrength-sprout-active/health.svg)](https://phpackages.com/packages/barrelstrength-sprout-active)
```

###  Alternatives

[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

44204.4k13](/packages/nystudio107-craft-autocomplete)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[nystudio107/craft-emptycoalesce

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.

28143.7k3](/packages/nystudio107-craft-emptycoalesce)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[nystudio107/craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.

20108.4k3](/packages/nystudio107-craft-templatecomments)

PHPackages © 2026

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