hieu-le/active

This package is abandoned and no longer maintained. No replacement package was suggested.

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

Maintainers

👁 letrunghieu

Package info

github.com/letrunghieu/active

Homepage

pkg:composer/hieu-le/active

Statistics

Installs: 1 523 686

Dependents: 22

Suggesters: 1

Stars: 414

Open Issues: 4

9.0.0 2022-03-10 14:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 5d9ce08ef8120ff4a35e775c38998271bbf6e6bd

  • Hieu Le <letrunghieu.cse09.woop@gmail.com>

routinglaravelactive


README

👁 Build Status
👁 Latest Stable Version
👁 Code Climate
👁 Test Coverage
👁 Total Downloads
👁 License

Caution

This repository is not maintained any more. Please feel free to fork it and make it compatible to new versions of Laravel.

The helper class for Laravel applications to get active class base on current url.

Since version 7.0, the major version of this library will match the major version of Laravel.

Laravel version Active library version
>= 7.x >= 7.x
6.x 4.x
5.x 3.x
4.x 1.x

Installation

Require this package as your dependencies:

composer require hieu-le/active

If you are using Laravel 5.5+, you do not need to manually register the ServiceProvider and Alias.

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

HieuLe\Active\ActiveServiceProvider::class,

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

'Active' => HieuLe\Active\Facades\Active::class,

Usage

See: How to use Active

Changelog:

  • v7.0: support Laravel 7 and start using the same marjor version with Laravel
  • v4.0: support Laravel 6 and PHPUnit 8
  • v3.5: support Laravel 5.5.x and PHPUnit 6
  • v3.4: support Laravel 5.4.x
  • v3.3: support Laravel 5.3.x
  • v3.2: allows first parameter of if_* functions to be string or array
  • v3.1: support both Laravel 5.2.x and 5.1.x
  • v3.0: new API