Download the PHP package phil/menu-bundle without Composer

On this page you can find all versions of the php package phil/menu-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package menu-bundle

phil/menu-bundle

Navigation menus and breadcrumbs for Symfony, with the visitor's current page marked.

phil/menu-bundle builds menus as trees of immutable items. Each item has a key, a label, a route or a URL, and may carry an icon, a description, counts, classes and attributes. The bundle marks the item the visitor is on and the items that lead to it, from the request's route or path. Twig shows a menu as a navigation list, as cards or as a breadcrumb, and gives the breadcrumb as a schema.org BreadcrumbList. It does not store menus: a builder reads them from wherever the application keeps them. It does not count anything either, since counting is a decorator's work.

It is for Symfony applications whose navigation is more than a few fixed links: sections with counts of their entries, cards whose attributes a script sorts or filters in the browser, a breadcrumb on every page. The templates mark the current link with aria-current="page" for screen readers.

The design rests on two extension points, found by autoconfiguration. A MenuBuilder makes one menu from code, a table or a file. MenuDecorator services then change its items in order of priority, children before their parent, to add counts, badges, classes or children from elsewhere. Twig is optional: without it, Menus still gives each menu built, decorated and marked.

Status

Part State
MenuItem and Menu: immutable trees, keys, counts, attributes, breadcrumb Implemented and tested
MenuBuilder, MenuDecorator, found by autoconfiguration; Menus Implemented and tested
The current item and its ancestors, from the route or the path Implemented and tested
Twig: menu, menu_breadcrumb, menu_breadcrumb_schema; list, cards and breadcrumb templates Implemented and tested

Documentation

Document What it covers
Installation Requirements and registering.
Items and menus MenuItem, Menu, and what an item holds.
Builders and decorators Making a menu, changing it, in which order.
The current item How the current item and its ancestors are told.
Twig The functions and the three templates.
Testing How the bundle is tested.
Reference Every type of the bundle.

Quick start

Requirements

PHP 8.5 or later with ext-mbstring; phil/url 0.1.3, which requires the intl, mbstring and URI extensions; symfony/config, symfony/dependency-injection and symfony/http-foundation 8.2 or later. Twig is optional; the templates use the router's path().

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of menu-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-mbstring Version *
symfony/dependency-injection Version ^8.2
symfony/http-foundation Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/menu-bundle contains the following files

Loading the files please wait ...