alveby / atrium-menus
Menus for Atrium: per site and language, a drag-and-drop tree of links to any record, items that unfold a module's sections
Requires
- php: ^8.3
- alveby/atrium: ^0.1
- illuminate/support: ^13.0
Requires (Dev)
- alveby/atrium-theme: ^0.1
- orchestra/testbench: ^11.0
- phpunit/phpunit: ^12.5
Suggests
- alveby/atrium-catalog: Catalog sections to unfold in a menu
- alveby/atrium-pages: Pages to link to and unfold in a menu
- alveby/atrium-theme: Draws the header and footer menus on the site
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-19 23:09:06 UTC
README
Menus for Atrium built in the admin: per site and per language, items in a tree edited by dragging, links to addresses or to records of any module, and items that unfold a module's records by themselves.
Install
composer require alveby/atrium-menus php artisan atrium:module:install alveby/atrium-menus
Add --demo for a header and a footer menu in the installer's language (any of the panel's 15), plus English, German and Russian ones, made of the installed modules.
Use
<x-atrium-menu code="header" />
$menu = atrium_menu('footer');
With the public theme (alveby/atrium-theme) the header and footer menus appear in the theme's header and footer by themselves. The current page and the items above it are marked (aria-current="page", is-active).
The guide: docs/menus.md (по-русски).
Tests
From the repository root:
vendor/bin/phpunit packages/menus/tests
The tests cover the admin form and the tree, the API, the component and the marking of the current page, unfolded modules, the demo and a site without the module, on SQLite, MySQL and PostgreSQL.
Contributing
This repository is a read-only copy of packages/menus in AlveBy/atrium. Issues and pull requests go there.
License
MIT