PHPackages                             samikeijonen/bem-nav-filters - 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. samikeijonen/bem-nav-filters

ActiveLibrary

samikeijonen/bem-nav-filters
============================

Custom BEM classes for nav in WordPress.

1.1.0(7y ago)934GPL-2.0-or-laterPHPPHP &gt;=5.6

Since Sep 9Pushed 7y ago3 watchersCompare

[ Source](https://github.com/samikeijonen/bem-nav-filters)[ Packagist](https://packagist.org/packages/samikeijonen/bem-nav-filters)[ Docs](https://github.com/samikeijonen/bem-nav-filters)[ RSS](/packages/samikeijonen-bem-nav-filters/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

BEM nav filters
===============

[](#bem-nav-filters)

This is a standalone composer package for BEM classes in WordPress navigation.

The article Quick Tip: [BEM Naming and WordPress Filters for Navigation](https://webdesign.tutsplus.com/tutorials/quick-tip-bem-naming-and-wordpress-filters-for-navigation--cms-31268)explains more about the logic.

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

[](#requirements)

- PHP 5.6+ (preferably 7+).
- [Composer](https://getcomposer.org/) for managing PHP dependencies.

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

[](#installation)

Open your command line tool and change directories to your WordPress theme folder.

```
cd path/to/wp-content/themes/
```

Then, use Composer to install the package.

```
composer require samikeijonen/bem-nav-filters
```

Usage
-----

[](#usage)

If you're not already including the Composer autoload file for your theme you'll want something like the following bit of code in your theme's `functions.php` to autoload this package (and any others).

The Composer autoload file will automatically load up filters file for you and make its code available for you to use.

```
if ( file_exists( get_parent_theme_file_path( 'vendor/autoload.php' ) ) ) {
	require_once( get_parent_theme_file_path( 'vendor/autoload.php' ) );
}
```

Then init filters by this code in `functions.php`:

```
// Init BEM nav filters.
$filters = new \Foxland\BemNav\Filters();
$filters->init();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Every ~0 days

Total

2

Last Release

2804d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccaa88499ddddbbb1c5112a92e6b2f4e695ae1bf78135a548dda049c5025ef93?d=identicon)[samikeijonen](/maintainers/samikeijonen)

---

Top Contributors

[![samikeijonen](https://avatars.githubusercontent.com/u/1820415?v=4)](https://github.com/samikeijonen "samikeijonen (21 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/samikeijonen-bem-nav-filters/health.svg)

```
[![Health](https://phpackages.com/badges/samikeijonen-bem-nav-filters/health.svg)](https://phpackages.com/packages/samikeijonen-bem-nav-filters)
```

###  Alternatives

[roots/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

19116.9M258](/packages/roots-wordpress)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[wpreadme2markdown/wpreadme2markdown

Convert WordPress Plugin readme.txt to Markdown

9564.6k4](/packages/wpreadme2markdown-wpreadme2markdown)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)[tacowordpress/tacowordpress

WordPress custom post types that feel like CRUD models

232.2k](/packages/tacowordpress-tacowordpress)

PHPackages © 2026

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