Download the PHP package sukristyan/laravel-menu-wrapper without Composer

On this page you can find all versions of the php package sukristyan/laravel-menu-wrapper. 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 laravel-menu-wrapper

Laravel Menu Wrapper

Laravel Menu Wrapper is a lightweight package that helps you manage dynamic menus in your Laravel app with less effort.

Simply put, this package automatically generates an array of menus based on what you define.

Tested on Laravel 10.x, 11.x, and 12.x — works successfully without any issues.

Installation

Using Composer (recommended):

After the installation is complete, the provider and configuration files will be published automatically.

Configuration

Currently, there are only 2 configuration items.

Group As (group_as)

Values: item or key.

This setting determines how your menus will be grouped.

key means that your group label will be used as the array key. Your defined menu will look like this:

item means that your group label will be included in the array as group_name, and your defined menus will be inserted under childs. Your menu will look like this:

Populated Items (populated_items)

Here, you can define what you want to collect from the 'Illuminate\Routing\Route', or add custom identifiers to help integrate the menu into your application.

Usage

NOTE: All collected data will follow what you define in config/laravel-menu-wrapper.php.

Go to your 'routes/web.php', and add the menu('Menu Label', 'Group Label') function to your route:

After that, you can run php artisan menu:list to show all your menus. You can also get all menus using this code:

You can parse the resulting menu array and use it anywhere in your project.

You can directly use it in a foreach loop, or create a custom page to manage the menu — allowing administrators to add or remove menu items for users.

License

The sukristyan/laravel-menu-wrapper package is open-sourced software licensed under the MIT license.


All versions of laravel-menu-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 sukristyan/laravel-menu-wrapper contains the following files

Loading the files please wait ....