PHPackages                             manojkiran/aktiv - 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. manojkiran/aktiv

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

manojkiran/aktiv
================

Package For Handling Active Menu(s) based on routes or url or resource routes

2.0.1(6y ago)042MITPHPPHP ^7.1

Since Mar 28Pushed 6y agoCompare

[ Source](https://github.com/ManojKiranA/Aktiv)[ Packagist](https://packagist.org/packages/manojkiran/aktiv)[ Docs](https://github.com/manojkiran/aktiv)[ RSS](/packages/manojkiran-aktiv/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (9)Used By (0)

Aktiv
=====

[](#aktiv)

[![Packagist License](https://camo.githubusercontent.com/b5924d4b515082b8e54cd79c8ac6f34a2cd87907b0c3e593dd80839d7cb39380/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d64656275676261722f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/fae3b0632c4aa4425fee2fdd63a174f5382f49281a2542027c6df4a5c1aeb00e/68747470733a2f2f706f7365722e707567782e6f72672f6d616e6f6a6b6972616e2f616b7469762f762f737461626c65)](https://packagist.org/packages/manojkiran/aktiv)[![Total Downloads](https://camo.githubusercontent.com/35771ec17ea501f3781d4e3e4c7c9a41bfa6f99a61a97b935f04ba92e0061dcb/68747470733a2f2f706f7365722e707567782e6f72672f6d616e6f6a6b6972616e2f616b7469762f646f776e6c6f616473)](https://packagist.org/packages/manojkiran/aktiv)[![Laravel5.8](https://camo.githubusercontent.com/4e96aefb282e337017eea74f08b964540d879e9065500284d4c41d638cc04a59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4672616d65776f726b2d7265642e7376673f7374796c653d666c6174)](https://www.laravel.com/)

Aktiv is a Laravel Helper Plugin that helpes to set the active menus

Available Methods
-----------------

[](#available-methods)

- `isRouteActive`
- `areRoutesActive`
- `isResourceActive`
- `areResourcesActive`
- `isActivePattern`
- `areActivePatterns`
- `isUrlActive`
- `areUrlsActive`

### Installation

[](#installation)

Aktiv requires [Laravel](https://laravel.com/) v 5.7 to use

From the command line:

```
composer require manojkiran/aktiv
```

Laravel 5.5+ will use the auto-discovery function.

If using 5.4 (or if you are not using auto-discovery) you will need to include the service providers / facade in `config/app.php`:

```
'providers' => [
    ...,
    Manojkiran\Aktiv\AktivServiceProvider::class
];
```

And add a facade alias to the same file at the bottom:

```
'aliases' => [
    ...,
    'Aktiv' => Manojkiran\Aktiv\Facade\AktivFacade\Aktiv::class
];
```

### How to Use (BOOTSRAP)

[](#how-to-use-bootsrap)

METHODSEXAMPLESisRouteActive`Aktiv::isRouteActive('routeName')`areRoutesActive`Aktiv::areRoutesActive(['routeName1','routeName2','routeName3','routeNameN'])`isResourceActive`Aktiv::isResourceActive('resourceName')`areResourcesActive`Aktiv::areResourcesActive(['resourceName1','resourceName2','resourceName3','resourceNameN'])`isActivePattern`Aktiv::isActivePattern('pattern1')`areActivePatterns`Aktiv::areActivePatterns(['pattern1','pattern2','pattern3','patternN'])`isUrlActive`Aktiv::isUrlActive('url')`areUrlsActive`Aktiv::areUrlsActive(['url1','url2','url3','urln'])`### How to Use in `CUSTOM ACTIVE CLASS`

[](#how-to-use-in--custom-active-class)

METHODSEXAMPLESisRouteActive`Aktiv::isRouteActive('routeName','activeClassName')`areRoutesActive`Aktiv::areRoutesActive(['routeName1','routeName2','routeName3',routeNameN],'activeClassName')`isResourceActive`Aktiv::isResourceActive('resourceName','activeClassName')`areResourcesActive`Aktiv::areResourcesActive(['resourceName1','resourceName2','resourceName3','resourceNameN'],'activeClassName')`isActivePattern`Aktiv::isActivePattern('pattern1','activeClassName')`areActivePatterns`Aktiv::areActivePatterns(['pattern1','pattern2','pattern3','patternN'],'activeClassName')`isUrlActive`Aktiv::isUrlActive('url','activeClassName')`areUrlsActive`Aktiv::areUrlsActive(['url1','url2','url3','urln'],'activeClassName')`### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Manojkiran](https://github.com/manojkiran)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Every ~26 days

Recently: every ~42 days

Total

8

Last Release

2413d ago

Major Versions

1.0.6 → 2.0.12019-10-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0a53b0205cdf63996fc8171d51622e151145605ce86db4cc5dd002cd7a16a87?d=identicon)[manojkiran](/maintainers/manojkiran)

---

Top Contributors

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

---

Tags

laravelmenubootstrapaktiv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/manojkiran-aktiv/health.svg)

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

###  Alternatives

[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)[patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

557407.2k4](/packages/patricktalmadge-bootstrapper)[akaunting/laravel-menu

Menu and sidebar management package for Laravel

38233.8k](/packages/akaunting-laravel-menu)[kalnoy/illuminate-menu

A menu builder for Laravel using Bootstrap's markup.

2514.3k1](/packages/kalnoy-illuminate-menu)[nguyendachuy/laravel-menu

Laravel Menu Builder | Drag &amp; Drop | Bootstrap | Laravel 7 | Laravel 8 | Laravel 9 | Laravel 10 | Laravel 11 | Laravel 12

162.2k](/packages/nguyendachuy-laravel-menu)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)

PHPackages © 2026

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