Download the PHP package agroezinger/filament-navigation-enhanced without Composer

On this page you can find all versions of the php package agroezinger/filament-navigation-enhanced. 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 filament-navigation-enhanced

filament-navigation-enhanced

Plumb score Plumb security score Plumb maintenance score Plumb ecosystem score Scanned by Plumb

Adds collapsible child-item support to the Filament v5 sidebar navigation. A parent item becomes an expand/collapse toggle; its children are revealed in an animated sub-list. The group auto-expands whenever a child is active.

image

Requirements

Dependency Version
PHP ^8.2
filament/filament ^5.0

Installation

Via Composer (Packagist)

Publish the view override

The package ships a replacement for Filament's sidebar/item component. Publish it once so Filament picks it up:

This copies the view to resources/views/vendor/filament-panels/components/sidebar/item.blade.php.

Usage

1. Register the plugin

Add NavigationEnhancedPlugin to every panel that should use the feature:

2. Register standalone parent items (no Page class needed)

Use parentNavigationItem() to declare a collapsible parent item directly on the plugin — no dummy Page or redirect required:

The child Pages must still opt out of standalone navigation registration:

Call ->parentNavigationItem() multiple times to register more than one standalone parent.

3. Add the trait to a parent Page or Resource

3. Suppress child items from the top-level navigation

Resources and Pages that appear as children should not register themselves as standalone sidebar items. Override shouldRegisterNavigation() on the Resource:

For a child Page, set:

4. Active-state detection

Use request()->routeIs() with a wildcard to match all pages of a resource (index, create, edit):

For a single Page, match the exact route name:

To find the exact route names for your panel, run:

How it works

The package publishes a custom sidebar/item Blade component that extends Filament's default one. When a NavigationItem carries child items (set via $item->childItems([...])), the component renders a <button> toggle instead of an <a> link, and wraps the children in an Alpine.js-powered <ul> with enter/leave transitions.

HasNavigationChildren::getNavigationItems() wraps the parent's items and calls childItems() on each with the return value of getNavigationChildItems(). The parent item auto-expands on load when $active || $activeChildItems is true.

Items without children fall through to Filament's original rendering path unchanged.

License

MIT


All versions of filament-navigation-enhanced with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
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 agroezinger/filament-navigation-enhanced contains the following files

Loading the files please wait ...