PHPackages                             permafrost-dev/laravel-current-route - 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. permafrost-dev/laravel-current-route

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

permafrost-dev/laravel-current-route
====================================

Helpers for retrieving information about the current route

1.0.5(5y ago)26MITPHPPHP ^7.2.5CI failing

Since Jul 21Pushed 5y agoCompare

[ Source](https://github.com/permafrost-dev/laravel-current-route)[ Packagist](https://packagist.org/packages/permafrost-dev/laravel-current-route)[ RSS](/packages/permafrost-dev-laravel-current-route/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (7)Used By (0)

### Laravel Current Route

[](#laravel-current-route)

---

Helper functions and class to retrieve information about the current route in Laravel.

[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/135f715ec8c35c555abd247a80bbabb72673c6caf43a0d1e19b0d95737aeadbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7065726d6166726f73742d6465762f6c61726176656c2d63757272656e742d726f7574653f6c6162656c3d76657273696f6e26736f72743d73656d766572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/135f715ec8c35c555abd247a80bbabb72673c6caf43a0d1e19b0d95737aeadbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7065726d6166726f73742d6465762f6c61726176656c2d63757272656e742d726f7574653f6c6162656c3d76657273696f6e26736f72743d73656d766572267374796c653d666c61742d737175617265)

---

#### Installation

[](#installation)

You can install the package via composer:

```
composer require permafrost-dev/laravel-current-route
```

---

#### Helper Functions

[](#helper-functions)

```
// Return a Laravel Route object for the current route.
function current_route();

// Return a class containing information about the current route.
function current_route_info();

// Return the action for the current route.
function current_route_action();

// Return true if one of the specified wildcard patterns matches the name of the current route.
function current_route_matches($patterns);

// Return the name for the current route.
function current_route_name();

// Returns true if $name matches the name of the current route.
function current_route_named($name);
```

#### Usage

[](#usage)

*WIP*

#### Examples

[](#examples)

Use `current_route_named()` to generate conditional css classes in a blade template:

```
Dashboard

```

---

#### Testing

[](#testing)

```
$ vendor/bin/phpunit
```

---

#### License

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

6

Last Release

2119d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.0.4PHP ^7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/de8dcb8e8a47ddc1076a26721d1ce7b17e3066b53c4a5c5e9aa31367c1955a20?d=identicon)[permafrost-dev](/maintainers/permafrost-dev)

---

Tags

laravellaravel-packagelaravel-routeslaravelroutes

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/permafrost-dev-laravel-current-route/health.svg)

```
[![Health](https://phpackages.com/badges/permafrost-dev-laravel-current-route/health.svg)](https://phpackages.com/packages/permafrost-dev-laravel-current-route)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[lord/laroute

Access Laravels URL/Route helper functions, from JavaScript.

8022.0M8](/packages/lord-laroute)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[dragon-code/laravel-route-names

Automatic generation of route names

259.2k1](/packages/dragon-code-laravel-route-names)

PHPackages © 2026

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