Download the PHP package magicoli/extra-navigation-items without Composer

On this page you can find all versions of the php package magicoli/extra-navigation-items. 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 extra-navigation-items

Extra Navigation Items

A tiny Filament plugin that renders a list of NavigationItem at a render hook instead of inside a panel's own navigation — so the items can reach every page of every panel, not just one panel's own destinations. Use it for cross-panel shortcuts, a footer credit line, or a single entry point another plugin borrows.

At the user menu — its default location — the items sit inside it, in the topbar or the sidebar, so there they render through Filament's own item component for that position and inherit its exact styling, tooltips and active state. That is the one standard place it recognises.

At any other hook it is a menu of its own: it never borrows the main navigation's markup or position, it just renders a plain <ul> of links, the same wherever it lands, carrying an extra-navigation-<group> class (see below) so a host can style one placement — a footer strip, say — without the package presuming anything about where it sits.

Deliberately not "secondary navigation": Filament already documents that term for navigation inside a page, which this is not.

Install

The service provider is auto-discovered; there is nothing to publish to use it.

Usage

Attach it to a panel like any Filament plugin. items() takes the same NavigationItems $panel->navigationItems() does.

Calls at the same hook add to the one menu there rather than each standing up a separate one: two callers at USER_MENU_BEFORE — a panel's own shortcuts and a module's extra entry, say — build a single menu, in registration order. To keep an independent second menu at a shared hook, give it its own id:

Borrowing the view

Another plugin can render a single item through this plugin's view rather than bespoke markup, so its entry looks like real navigation wherever it lands:

The menu's <ul> carries an extra-navigation-<group> class (the group being the hook, or an explicit id()), so a host can style one placement in CSS without the package presuming anything about it.

Overrides

The user menu, signed out

Filament renders the user-menu component — and the USER_MENU_BEFORE / USER_MENU_AFTER hooks inside it — only when a user is signed in (its topbar and sidebar guard the component behind an auth check). On a public panel that leaves the default placement with nothing to attach to when logged out. This package ships opt-in overrides of filament-panels' components/user-menu, livewire/topbar and livewire/sidebar that render the user menu whether or not a user is signed in, so the hooks always have a home. They are forks of Filament's own views — version-coupled by nature — so they are never applied automatically; publish them into your app to opt in:

Once published, the user menu also:

Everything is resolved through the filament() manager, so it is not tied to any app's routes. The user-menu trigger styling ships as a Filament-served stylesheet; publish extra-navigation-items-styles to restyle.

Notes

License

AGPL-3.0-or-later.


All versions of extra-navigation-items with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
andreiio/blade-remix-icon Version ^3.9
filament/filament Version ^5.0
joaopaulolndev/filament-edit-profile Version ^3.0
illuminate/contracts Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 magicoli/extra-navigation-items contains the following files

Loading the files please wait ...