PHPackages                             pinfort/laravel-topnav - 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. pinfort/laravel-topnav

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

pinfort/laravel-topnav
======================

Create simple top navigation for laravel

v0.1.0(8y ago)11731MITPHPPHP &gt;=5.3.0

Since Jan 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pinfort/laravel-topnav)[ Packagist](https://packagist.org/packages/pinfort/laravel-topnav)[ RSS](/packages/pinfort-laravel-topnav/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

laravel-topnav
==============

[](#laravel-topnav)

Create simple top navigation for laravel

Basic Usage
-----------

[](#basic-usage)

### Installation

[](#installation)

```
composer require pinfort/laravel-topnav
```

Attention: Perhaps it is necessary to change the minimum stability of the composer...

### Publish files

[](#publish-files)

```
php artisan vendor:publish
```

You will find five new files.

- public/vendor/TopNav/top\_nav.css
    - It is required.

- config/top\_nav.php
    - You will edit this file to make your own top navigation.
- resources/lang/vendor/LaravelTopNav/en/ui.php
    - You will edit this file too.
    - To add new items, you should define its translation.
- resources/views/vendor/LaravelTopNav/menu.blade.php
    - This file is main view of menu.
    - In basic, you have no need to edit this file.
- resources/views/vendor/LaravelTopNav/menu\_items.blade.php
    - This file is sub view of menu.
    - In basic, you have no need to edit this file.

### Edit config

[](#edit-config)

Edit config/top\_nav.php whatever you need. Read comments in the file.

### Add translation

[](#add-translation)

Add translations to resources/lang/vendor/LaravelTopNav/en/ui.php. cf. config/top\_nav.php

### Enable library

[](#enable-library)

Add style sheet link to your view. near the line 14

in resources/views/layouts/app.blade.php(created by make:auth command)

```

+
```

Add following code in your view.

same file. in resources/views/layouts/app.blade.php(created by make:auth command)

near the line 39

```

-
-    &nbsp;
-
+@laraveltopnav
```

### Now it works!

[](#now-it-works)

[![demo](https://camo.githubusercontent.com/be0581ef3a1724b1795fccc301672555ee13ea9de490b116c27a4d46dddba823/68747470733a2f2f7261772e6769746875622e636f6d2f77696b692f70696e666f72742f4c61726176656c2d746f706e61762f6d656469612f4c61726176656c2d323031385f30325f30332d335f34315f30365472696d2e676966)](https://camo.githubusercontent.com/be0581ef3a1724b1795fccc301672555ee13ea9de490b116c27a4d46dddba823/68747470733a2f2f7261772e6769746875622e636f6d2f77696b692f70696e666f72742f4c61726176656c2d746f706e61762f6d656469612f4c61726176656c2d323031385f30325f30332d335f34315f30365472696d2e676966)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~20 days

Total

6

Last Release

3001d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8953dcc153ae0d1994a57fee8ca8cbf2ccdbc9094c646891f87469e622c8f543?d=identicon)[pinfort](/maintainers/pinfort)

---

Top Contributors

[![pinfort](https://avatars.githubusercontent.com/u/19170349?v=4)](https://github.com/pinfort "pinfort (13 commits)")[![kphrx](https://avatars.githubusercontent.com/u/13777426?v=4)](https://github.com/kphrx "kphrx (5 commits)")

---

Tags

laravelmenunavigation

### Embed Badge

![Health badge](/badges/pinfort-laravel-topnav/health.svg)

```
[![Health](https://phpackages.com/badges/pinfort-laravel-topnav/health.svg)](https://phpackages.com/packages/pinfort-laravel-topnav)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[caffeinated/menus

Laravel Menus

132160.3k5](/packages/caffeinated-menus)[akaunting/laravel-menu

Menu and sidebar management package for Laravel

38248.3k](/packages/akaunting-laravel-menu)[awes-io/navigator

🧿 Build navigation or menu for Laravel and Awes.io. Unlimit complexity and depth of the menu.

4922.8k](/packages/awes-io-navigator)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.4k](/packages/nedwors-navigator)[kodicomponents/navigation

The KodiCMS Support package.

12236.3k11](/packages/kodicomponents-navigation)

PHPackages © 2026

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