PHPackages                             digithis/activehelper - 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. digithis/activehelper

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

digithis/activehelper
=====================

Active helper is a simple active state system for your links in laravel 4

163.0k2PHP

Since Nov 21Pushed 12y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\##Active Helper active helper is a simple active state system for your links in laravel 4 ###How to install Add the following line in your `composer.json`

```
"digithis/activehelper": "dev-master"

```

Then run `composer update`

In `app/config.app.php`, add the following line to the `providers` array

```
'Digithis\Activehelper\ActivehelperServiceProvider',

```

In the `aliases` array, add the following line

```
'Active'  => 'Digithis\Activehelper\ActiveFacade',

```

\###How to use Create a link and its current state :

```
echo Active::link('users', URL::to('users'), 'Show all users');
```

This means that if the current request is `users`, class for link is `.active`

Add several more routes as a first parameter :

```
echo Active::link(array('users', 'user/add', 'user/edit'), URL::to('users'), 'Show all users');
```

Use `*` as a pattern or exclude routes with `not:` :

```
echo Active::link(array('user*','not:user/edit'), URL::to('users'), 'Show all users');
```

This means that if the request begins with `user` but is not `user/edit`, class for link is `.active`

Set your own attributes if you wish:

```
echo Active::link(array('group*','not:groups*'), URL::to('group'), 'Show group', array('id' => 'mycustomid'));
```

You can also only get the current state (boolean)

```
$state = Active::is('page*','not:pages*');
```

And return the active class if the routes are matched

```
Active::classes('page*', 'not:pages*');

// Returns 'active'
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/96fd6abf325e4de31b2ecd5e165ef65c2b417a0546019b44650ff3cdfbc1962e?d=identicon)[digithis](/maintainers/digithis)

---

Top Contributors

[![rrolt](https://avatars.githubusercontent.com/u/3406332?v=4)](https://github.com/rrolt "rrolt (37 commits)")[![dwightwatson](https://avatars.githubusercontent.com/u/1100408?v=4)](https://github.com/dwightwatson "dwightwatson (2 commits)")

### Embed Badge

![Health badge](/badges/digithis-activehelper/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k417.9M1.7k](/packages/nette-utils)[dgr/nohup

A library to run a command in the background, it will return the process's pid, and get it's is running status anytime in the another process, and can be stoped anytime. It support Windows, Linux and Mac osx.

531.7k](/packages/dgr-nohup)

PHPackages © 2026

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