Download the PHP package shallowred/kirby-navigation-menus without Composer

On this page you can find all versions of the php package shallowred/kirby-navigation-menus. 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 kirby-navigation-menus

Kirby Navigation Menus Plugin

A powerful and flexible navigation menu system for Kirby CMS that provides reusable navigation components with advanced features like dropdowns, mobile toggles, breadcrumbs, and comprehensive accessibility support.

Features

Installation

Via Composer (Recommended)

Manual Installation

  1. Download and extract the plugin
  2. Copy to /site/plugins/kirby-navigation-menus
  3. Install the required dependency: lukaskleinschmidt/kirby-snippet-controller

Dependencies

This plugin requires:

Quick Start

1. Configure Your Menus

Add your navigation menus to your site configuration:

2. Add Navigation Fields to Your Blueprints

3. Use in Your Templates

Configuration Options

Default Behavior

CSS & Styling

Security Settings

Mobile & Accessibility

Navigation Item Types

Simple Links

Buttons

Dropdown Menus

Site Methods

site()->getMenu($key)

Retrieves a navigation menu by its key.

site()->navPages($key)

Gets navigation pages as a blocks collection.

site()->renderNavItem($navPage, $currentPage)

Renders a single navigation item with proper current page detection.

site()->isValidUrl($url)

Validates URLs according to security configuration.

Page Methods

$page->isInMenu($key)

Check if the current page is in a specific navigation menu.

$page->prevInMenu($key) / $page->nextInMenu($key)

Navigate to the previous/next page in a navigation menu.

$page->hasPrevInMenu($key) / $page->hasNextInMenu($key)

Check if previous/next pages exist in navigation.

Advanced Usage

Custom Navigation Rendering

Breadcrumb Navigation

Mobile Navigation with JavaScript

Styling Examples

Basic CSS

Troubleshooting

Common Issues

  1. Navigation not appearing: Check that your menu is properly configured in site/config/config.php
  2. Current page not detected: Ensure auto-current-detection is enabled
  3. Mobile toggle not working: Add JavaScript for mobile toggle functionality
  4. Dropdown menus not styling: Check your CSS for .dropdown classes

Debug Mode

Enable debug mode to see helpful warnings:

Performance Tips

Security Considerations

Multilingual Support

The plugin includes translations for English and French. Add your own translations:

License

MIT License. See LICENSE.md for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure PSR coding standards compliance
  5. Submit a pull request

Support

Development

Add instructions on how to help working on the plugin (e.g. npm setup, Composer dev dependencies, etc.)

License

MIT

Credits


All versions of kirby-navigation-menus with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
lukaskleinschmidt/kirby-snippet-controller Version ^2.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 shallowred/kirby-navigation-menus contains the following files

Loading the files please wait ...