PHPackages                             m2mtech/twig-navigation-extension - 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. [Templating &amp; Views](/categories/templating)
4. /
5. m2mtech/twig-navigation-extension

Abandoned → [https://github.com/m2mtech/ux-navigation](/?search=https%3A%2F%2Fgithub.com%2Fm2mtech%2Fux-navigation)Symfony-bundle[Templating &amp; Views](/categories/templating)

m2mtech/twig-navigation-extension
=================================

Twig/UX extensions for common navigation widgets for symfony.

v2.0.0(4y ago)114[1 PRs](https://github.com/m2mtech/ux-navigation/pulls)MITPHPPHP &gt;=7.2.5

Since Feb 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/m2mtech/ux-navigation)[ Packagist](https://packagist.org/packages/m2mtech/twig-navigation-extension)[ Docs](https://github.com/m2mtech/ux-navigation)[ RSS](/packages/m2mtech-twig-navigation-extension/feed)WikiDiscussions main Synced 4w ago

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

Twig Navigation Extension
=========================

[](#twig-navigation-extension)

[![Author](https://camo.githubusercontent.com/f7f4b78e6905bcc447517f1d77b7160678f98c9ad66899a442b7114bb8e09d1f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d326d746563682d626c75652e7376673f7374796c653d666c61742d737175617265)](http://www.m2m.at)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

---

This bundle provides Twig extensions for common navigation widgets as well as their stimulus controllers wired for [symfony UX](https://symfony.com/doc/current/frontend/ux.html).

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

[](#installation)

```
composer require m2mtech/ux-navigation
```

If you are not using Flex enable the bundle:

```
// config/bundles.php

return [
    // ...
    M2MTech\UxNavigation\M2MTechUxNavigationBundle::class => ['all' => true],
];
```

If you want to use the bundled stimulus controllers install the Javascript dependencies and compile them:

```
yarn install --force
yarn encore dev
```

Usage
-----

[](#usage)

FunctionDescription[`m2mDarkModeSelector()`](docs/darkModeSelector.md)Renders dark mode selector.[`m2mLanguageSelector()`](docs/languageSelector.md)Renders links from the current path to switch languages.Documentation can be found in the [./docs](docs/index.md) directory.

Testing
-------

[](#testing)

This package has been developed for php 7.4 with compatibility tested for php 7.2 to 8.1.

```
composer test

# or the Javascript respectively
cd src/Resources/assets; yarn test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Total

4

Last Release

1536d ago

Major Versions

v1.1.1 → v2.0.02022-02-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/0eabe14e40ffa0bddbc937846a7a4174672ba39026c6eee7d81906d3e39e5d4c?d=identicon)[m2mtech](/maintainers/m2mtech)

---

Top Contributors

[![m2mtech](https://avatars.githubusercontent.com/u/1568448?v=4)](https://github.com/m2mtech "m2mtech (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

symfonytwigsymfony-uxextensionnavigationtwig-extensiondark-modeuxlanguage selector

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/m2mtech-twig-navigation-extension/health.svg)

```
[![Health](https://phpackages.com/badges/m2mtech-twig-navigation-extension/health.svg)](https://phpackages.com/packages/m2mtech-twig-navigation-extension)
```

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)[dms/twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

19296.3k](/packages/dms-twig-extension-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

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