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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

krgupta/active
==============

The helper class for Laravel 6 applications to get active class base on current route

4.0(6y ago)39.3k1MITPHPPHP &gt;=7.2CI failing

Since Oct 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/krguptaa/active)[ Packagist](https://packagist.org/packages/krgupta/active)[ RSS](/packages/krgupta-active/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (3)Versions (12)Used By (0)

Active for Laravel
==================

[](#active-for-laravel)

Library is based on

The helper class for Laravel applications (L4,L5 and L6) to get active class base on current url.

We are using this package in this repository () as core package.

This README file is written for the new `6.x` version of this package, which is compatible with the Laravel 6 only.

- If you are using Laravel 4, see the [`4.x` versions](https://github.com/krguptaa/active/tree/v2.x).
- If you are using Laravel 5, see the [`5.x` versions](https://github.com/krguptaa/active/tree/v3.x).

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

[](#installation)

Require this package as your dependencies:

```
composer require krgupta/active

```

Append this line to your `providers` array in `config/app.php`

```
Krgupta\Active\Providers\ActiveServiceProvider::class,
```

Append this line to your `aliases` array in `config/app.php`

```
'Active' => Krgupta\Active\Facades\Active::class,
```

Contribute
==========

[](#contribute)

You can contribute to this project, by just taking fork of it. We are open for suggestion and PRs. If you have any new suggestions or anything for that matter, contact me at

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% 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 ~0 days

Total

10

Last Release

2454d ago

Major Versions

1.3 → v3.x-dev2019-10-15

v1.x-dev → 4.02019-10-15

PHP version history (4 changes)1PHP ^7.2

1.3PHP &gt;=7.0

v2.x-devPHP &gt;=5.4.0

4.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9528943d7d7a35066aa85781a948eaeab207d30d5e92617f9e729f7cc0e6fb27?d=identicon)[krguptaa](/maintainers/krguptaa)

---

Top Contributors

[![krguptaa](https://avatars.githubusercontent.com/u/16936952?v=4)](https://github.com/krguptaa "krguptaa (31 commits)")[![krgupta-cygnet](https://avatars.githubusercontent.com/u/42832188?v=4)](https://github.com/krgupta-cygnet "krgupta-cygnet (2 commits)")

---

Tags

activelaravel-frameworklaravel6routinglaravelroutingactive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3363.8M14](/packages/watson-active)[firefly-iii/data-importer

Firefly III Data Import Tool.

8045.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

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

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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