PHPackages                             tijdmachine/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tijdmachine/laravel-active

Abandoned → [imbue/laravel-active](/?search=imbue%2Flaravel-active)Library[Utility &amp; Helpers](/categories/utility)

tijdmachine/laravel-active
==========================

Helper to check if the current route is active.

1.0.0(8y ago)143MITPHPPHP &gt;=7.0

Since Jan 14Pushed 7y agoCompare

[ Source](https://github.com/imbue/laravel-active)[ Packagist](https://packagist.org/packages/tijdmachine/laravel-active)[ RSS](/packages/tijdmachine-laravel-active/feed)WikiDiscussions master Synced yesterday

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

Laravel Active
==============

[](#laravel-active)

[![Latest Stable Version](https://camo.githubusercontent.com/0f88d5ca11f40238aa5cc6e12f93d7f7648d601c5564d08bad016824171bd808/68747470733a2f2f706f7365722e707567782e6f72672f696d6275652f6c61726176656c2d6163746976652f762f737461626c65)](https://packagist.org/packages/imbue/laravel-active)[![Total Downloads](https://camo.githubusercontent.com/44eef6d0e12ce5d0ac13693badaa555767b0f54a187563c9b8104ac665cb1b2a/68747470733a2f2f706f7365722e707567782e6f72672f696d6275652f6c61726176656c2d6163746976652f646f776e6c6f616473)](https://packagist.org/packages/imbue/laravel-active)[![License](https://camo.githubusercontent.com/2ff2b13dccd62ddade7693cef9f46d4e66ffc79be3c12b7f7c0673ee1e7918e0/68747470733a2f2f706f7365722e707567782e6f72672f696d6275652f6c61726176656c2d6163746976652f6c6963656e7365)](https://packagist.org/packages/imbue/laravel-active)

Laravel Active is a package for Laravel that makes it easy to recognize if the current path or route is active.

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

[](#requirements)

- Laravel &gt;=5.5

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

[](#installation)

Add Laravel Active to your composer file via the composer require command

```
$ composer require imbue/laravel-active
```

> Laravel 5.5 uses Package Auto-Discovery, so does not require you to manually add the ServiceProvider.

Publish the config file to your local config folder

```
$ php artisan vendor:publish --tag=laravel-active
```

Usage
-----

[](#usage)

```
// by path
{{ active('articles') }}
{{ active('articles/*') }}
{{ active(['articles', 'articles/*']) }}

// by route name
{{ active('articles.*') }}
{{ active(['articles', 'articles.*']) }}
```

#### Example

[](#example)

```

        Blog

```

Credits
-------

[](#credits)

This package is based on [Active by dwightwatson](https://github.com/dwightwatson/active) and stripped down/changed to personal preference.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3089d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelrouteactive

### Embed Badge

![Health badge](/badges/tijdmachine-laravel-active/health.svg)

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.7k2](/packages/creasi-laravel-nusa)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1319.7k3](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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