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. [Utility &amp; Helpers](/categories/utility)
4. /
5. samikeijonen/bem-nav-filters

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

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 2w 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 52% 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

2851d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1820415?v=4)[Sami Keijonen](/maintainers/samikeijonen)[@samikeijonen](https://github.com/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

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k227.8k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[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)
