PackageTrack
Sign in Get early access

knplabs/knp-menu

An object oriented menu library

v3.8.0 59M downloads/mo #807 most downloaded on Packagist KnpLabs/KnpMenu

What this package is like to depend on

Last release 1 years ago

13 Jun 2025

Release timing varies

gaps range from 2 months to 1.6 years

Some releases are documented

notes for 17 of 30 stable releases

Nothing withdrawn

no release was ever pulled

15 years old

33 releases · first in 2011

0 releases in the last 12 months

see the full history below

Release timeline

33 releases · Dec 2011 to Jun 2025
2012 2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 33
  1. v3.8.0 13 Jun 2025
    Release notes

    What's Changed

    • Fix twig runtime extension last modification time detection by @daniser in #405
    • Add an attribute to mark menu builder methods by @stof in #406
    • Improve type analysis by @stof in #407 and #409
    • Use WeakMap instead of SplObjectStorage to avoid memory leak by @andrew-demb in #404
    • Restrict the API surface with internal and final tags by @stof in #408

    New Contributors

    Full Changelog: v3.7.0...v3.8.0

    Open source →
  2. v3.7.0 28 Feb 2025
    Release notes

    This release allows KnpMenu to work with the future release of Twig 4, by removing the deprecated spaceless filter.
    This was done in a way which should be probably improved. For all the details about it, please check the discussions on PR #399

    What's Changed

    Full Changelog: v3.6.0...v3.7.0

    Open source →
  3. v3.6.0 20 Dec 2024
    Release notes

    What's Changed

    Full Changelog: v3.5.0...v3.6.0

    Open source →
  4. v3.5.0 23 Mar 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v3.4.0...v3.5.0

    Open source →
  5. v3.4.0 17 May 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v3.3.0...v3.4.0

    Open source →
  6. v3.3.0 23 Oct 2021

    Nothing published for this version

  7. v3.2.0 28 May 2021
    Release notes
    • Remove Symfony 6 deprecations
    • Enforce phpstan rules (max level)
    Open source →
  8. v3.1.3 19 Feb 2021
    Release notes

    Co-authored-by: Alexander M. Turek [email protected]

    Open source →
  9. v3.1.2 15 Aug 2020
    Release notes

    Minor tweaks to coding standard and configurations

    Open source →
  10. v3.1.1 22 Apr 2020

    Nothing published for this version

  11. v3.1.0 01 Dec 2019

    Nothing published for this version

  12. v3.0.3 10 Oct 2019

    Nothing published for this version

  13. v3.0.2 09 Oct 2019

    Nothing published for this version

  14. v3.0.1 26 Sep 2019

    Nothing published for this version

  15. v3.0.0 02 Sep 2019

    Nothing published for this version

  16. 2.6.1 19 Feb 2021
    Release notes

    Co-authored-by: Alexander M. Turek [email protected]

    Open source →
  17. 2.6.0 02 Sep 2019

    Nothing published for this version

  18. 2.5.0 23 Aug 2019

    Nothing published for this version

  19. 2.4.1 16 Aug 2019

    Nothing published for this version

  20. 2.4.0 29 Jul 2019

    Nothing published for this version

  21. 2.3.0 18 Nov 2017

    Nothing published for this version

  22. 2.2.0 22 Sep 2016

    Nothing published for this version

  23. v2.1.1 08 Jan 2016
    Release notes
    • Made compatible with Symfony 3
    Open source →
  24. v2.1.0 20 Sep 2015
    Release notes
    • Added a new function to twig: knp_menu_get_breadcrumbs_array
    • Added a new filter to twig: knp_menu_as_string
    • Added 2 new tests to twig: knp_menu_current, knp_menu_ancestor
    • Made the templates compatible with Twig 2
    • Add menu and renderer providers supporting any ArrayAccess implementations. The Pimple-based providers (supporting only Pimple 1) are deprecated in favor of these new providers.
    Open source →
  25. v2.0.1 01 Aug 2014
    Release notes
    • Fixed voter conventions on RouteVoter
    Open source →
  26. v2.0.0 18 Jul 2014
    Release notes
    • [BC break] Clean code and removed the BC layer
    Open source →
  27. v2.0.0-beta1 13 Jun 2014 pre-release

    Nothing published for this version

  28. v2.0.0-alpha2 01 May 2014 pre-release

    Nothing published for this version

  29. v2.0.0-alpha1 23 Jun 2013 pre-release

    Nothing published for this version

  30. v1.1.2 10 Jun 2012
    Release notes
    • Updated the Silex service provider for the change in the interface
    Open source →
  31. v1.1.1 17 May 2012
    Release notes
    • Added the children attributes and the extras in the array export
    Open source →
  32. v1.1.0 17 May 2012
    Release notes
    • Marked Knp\Menu\ItemInterface::getCurrentItem as deprecated
    • Added a recursive filter iterator keeping only displayed items
    • Added a filter iterator keeping only current items
    • Added a recursive iterator for the item
    • Fixed building an array of breadcrumbs when a label has only digits
    • Added a way to mark a label as safe
    • Refactored the ListRenderer to be consistent with the TwigRenderer and provide the same extension points
    • Added a way to attach extra data to an item
    • Removed unnecessary optimization in the TwigRenderer
    • Added some whitespace control in the Twig template to ensure an empty rendering is really empty
    • [BC break] Use the childrenAttributes for the root instead of the attributes
    • Made the default options configurable for the TwigRenderer
    • Added the support for menu registered as factory in PimpleProvider
    • Added a way to use the options in knp_menu_get() in Twig templates
    • Added an array of options for the MenuProviderInterface
    • Added a template to render an ordered list
    • Refactored the template a bit to make it easier to use an ordered list
    • Allow omitting the name of the child in fromArray (the key is used instead)
    Open source →
  33. v1.0.0 03 Dec 2011
    Release notes
    • Add composer.json file
    • Added more flexible list element blocks
    • Add support for attributes on the children collection.
    • Added a default renderer
    • Added a ChainProvider for the menus.
    • Added the Silex extension
    • Added a RouterAwareFactory
    • Added a helper to be able to reuse the logic more easily for other templating engines
    • Added a way to retrieve an item using a path in a menu tree
    • Changed the toArray method to use a depth instead of simply using a boolean flag
    • Refactored the export to array and the creation from an array
    • Added better support for encoding problems when escaping a string in the ListRenderer
    • Added a Twig renderer
    • Added missing escaping in the ListRenderer
    • Renamed some methods in the ItemInterface
    • Removed the configuration of the current item as link from the item
    • Refactored the ListRenderer to use options
    • Changed the interface of callRecursively
    • Refactored the NodeInterface to be consistent
    • Moved the creation of the item to the factory
    • Added a Twig extension to render the menu easily
    • Changed the menu provider interface with a pimple-based implementation
    • Added a renderer provider to get a renderer by name and a Pimple-based implementation
    • Removed the renderer from the menu
    • Removed the num in the item by refactoring isLast and isFirst
    • Changed the RendererInterface to accept an array of options to be more flexible
    • Added an ItemInterface
    • Initial import of KnpMenuBundle decoupled classes with a new namespace
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive