PHPackages                             maestriam/hiker - 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. maestriam/hiker

ActiveLibrary

maestriam/hiker
===============

Create menus and breadcrumbs for you projects.

v0.0.10(5y ago)018GPL-3.0PHP

Since Aug 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/maestriam/hiker)[ Packagist](https://packagist.org/packages/maestriam/hiker)[ RSS](/packages/maestriam-hiker/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

 [![](hiker.png)](hiker.png)

**Create breadcrumbs and menus for your Laravel projects.**

🗻 Maestriam/Hiker
=================

[](#-maestriamhiker)

**Maestriam/Hiker** is a package for creating menus and breadcrumbs using [Laravel Routes](https://laravel.com/docs/6.x/routing).
**Under construction!**

Requirements
------------

[](#requirements)

- Laravel 6.\*^

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

[](#installation)

**Install via composer**

```
composer require maestriam/hiker
```

Getting Started
---------------

[](#getting-started)

**Preparing routes**

Let's start creating some routes normally using Laravel Routes.
You must declaring `as` and `uses` params.

```
    Route::get('/test/edit/{id}', [
        'as'    => 'test.edit',
        'uses'  => 'TestController@edit'
    ]);
```

**Optional attributes**

Optionally, you can add others params into yout route

```
    Route::get('/test', [
        'as'    => 'test.index',
        'uses'  => 'TestController@index'
        'icon'  => 'flag',
        'label' => 'My Route Index',
        'desc'  => 'A common index route'
    ]);
```

Menu
----

[](#menu)

**Create a new menu**

```
    $menu = Hiker::menu('test-menu');
```

Now, let's add some routes in it

```
    $menu = Hiker::menu('test-menu')
                 ->push('test.index')
                 ->push('test.view')
                 ->push('test.edit);
```

Into your php class, we can dump our menu this way

```
    $menu = Hiker::menu('test-menu');

    foreach($menu->collection as $route) {
        dump($route->url);
    }
```

The above example will output (if is localhost with `php artisan serve`):

```
    http://localhost:8000/test
    http://localhost:8000/view/1
    http://localhost:8000/edit/1
```

We can render into blade file

```
    @foreach($menu->collection as $route)
        {{ $route->url }}
    @endforeach
```

Breadcrumb
----------

[](#breadcrumb)

**Creating breadcrumb**

Create a new middleware and put into your function.

```
    Hiker::breadcrumb('my-breadcrumb')
```

**Creating namesake breadcrumb**

You can create namesake breadcrumbs. Just name it breadcrumb with same name that you route.
Automatically, the last item of breadcrumb will be the route that your name given

```
    Hiker::breadcrumb('my-route')
```

**Adding routes**

To add routes into breadcrumb, just call function `push` passing route name as parameter;
You can pass others parameters for construction of route

```
    Hiker::breadcrumb('my-breadcrumb')
         ->push('test.index')
         ->push('test.index', ['id' => 1]);
```

**Get routes**

To get added routes, just access `collection` attribute:

```
    $breadcrumb = Hiker::breadcrumb('my-breadcrumb');

    $breadcrumb->collection;
```

Created by [Giuliano Sampaio](https://github.com/giusampaio) with ❤️ and 🍺!

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3be54af44786252af41a2269b0d596949b2d8f22839839e5907e211559f945c8?d=identicon)[giusampaio](/maintainers/giusampaio)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maestriam-hiker/health.svg)

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

PHPackages © 2026

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