PHPackages                             mwdelaney/sage-bootstrap4-navwalker - 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. mwdelaney/sage-bootstrap4-navwalker

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

mwdelaney/sage-bootstrap4-navwalker
===================================

Bootstrap 4 Navbar component navwalker for Sage 9 based themes

1.7(5y ago)7398.3k↓72.4%33[4 issues](https://github.com/MWDelaney/sage-bootstrap4-navwalker/issues)MITPHPPHP &gt;=5.3.2

Since Dec 13Pushed 5y ago2 watchersCompare

[ Source](https://github.com/MWDelaney/sage-bootstrap4-navwalker)[ Packagist](https://packagist.org/packages/mwdelaney/sage-bootstrap4-navwalker)[ Docs](https://github.com/MWDelaney/sage-bootstrap4-navwalker)[ RSS](/packages/mwdelaney-sage-bootstrap4-navwalker/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)DependenciesVersions (11)Used By (0)

Sage 9 friendly Bootstrap 4 Navwalker
=====================================

[](#sage-9-friendly-bootstrap-4-navwalker)

Sets up a Bootstrap 4 Navwalker for Sage 9-based themes.

To install, run the following in your Sage9-based theme directory:

```
composer require "mwdelaney/sage-bootstrap4-navwalker"
```

Include the navwalker in your `wp_nav_menu` function:

As a [Controller](https://github.com/soberwp/controller) method (Recommended)
-----------------------------------------------------------------------------

[](#as-a-controller-method-recommended)

In your Controller, probably `app.php`

```
/**
 * Primary Nav Menu arguments
 * @return array
 */
public function primarymenu() {
  $args = array(
    'theme_location'    => 'primary_navigation',
    'menu_class'        => 'navbar-nav',
    'walker'            => new \App\wp_bootstrap4_navwalker(),
    ...
  );
  return $args;
}
```

In your Blade file, probably `header.blade.php`

```
@if (has_nav_menu('primary_navigation'))
  {!! wp_nav_menu($primarymenu) !!}
@endif
```

Without Controller
------------------

[](#without-controller)

If you're not setting up your template data with Controller, you'll need to fully reference the `\App\wp_bootstrap4_navwalker()`. In your Blade file, probably `header.blade.php`

```
@if (has_nav_menu('primary_navigation'))
  {!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav', 'walker' => new \App\wp_bootstrap4_navwalker()]) !!}
@endif
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 84.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 ~129 days

Recently: every ~49 days

Total

9

Last Release

2089d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2457670?v=4)[Michael W. Delaney](/maintainers/MWDelaney)[@MWDelaney](https://github.com/MWDelaney)

---

Top Contributors

[![MWDelaney](https://avatars.githubusercontent.com/u/2457670?v=4)](https://github.com/MWDelaney "MWDelaney (16 commits)")[![jelovac](https://avatars.githubusercontent.com/u/3627139?v=4)](https://github.com/jelovac "jelovac (2 commits)")[![laurens-b](https://avatars.githubusercontent.com/u/10259791?v=4)](https://github.com/laurens-b "laurens-b (1 commits)")

---

Tags

wordpressnavbarbootstrap 4navwalker

### Embed Badge

![Health badge](/badges/mwdelaney-sage-bootstrap4-navwalker/health.svg)

```
[![Health](https://phpackages.com/badges/mwdelaney-sage-bootstrap4-navwalker/health.svg)](https://phpackages.com/packages/mwdelaney-sage-bootstrap4-navwalker)
```

###  Alternatives

[log1x/navi

A developer-friendly alternative to the WordPress NavWalker.

370700.3k11](/packages/log1x-navi)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

20416.0M415](/packages/php-stubs-wordpress-stubs)

PHPackages © 2026

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