Download the PHP package kaishiyoku/laravel-menu without Composer

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

Maintenance Packagist Packagist

Laravel menus with automatic CSS highlighting

Table of contents

Version info

Version 4 is a complete rework of the package. Thus breaking changes were introduced.

Minimum requirements

General

This package helps defining and rendering menu structures in Laravel. The main feature is the CSS highlighting of the active page. The package is coupled to Laravel and can't be used standalone.

Important Information

Please note that your routes must be named.

Installation

Composer

Add to your composer.json by running .

Update your dependencies by running .

Laravel Configuration

The package supports Laravel auto-discovery but if you want you can add to the providers array
and to the aliases array in app/config/app.php.

Usage

Example \App\Http\Middleware\Menus.php:

Edited \App\Http\Kernel:

To display the configured menus you have to call the render function somewhere in your Blade template:

If the render() method is being called without parameters the default menu will be rendered. The menus must have unique names, otherwise an exception will be thrown.

The result would look like this: Screenshot 1

If you have any issues feel free to open a ticket.

Sample

You can also use a condition whether the given menu entry should be rendered or not, example:

For dropdown links you can define multiple routes so that a given link will be highlighted when one of those routes is being visited. The first route will be the route to where the link goes:

Available methods

➡ Every container method can also be called with a condition. Only if this condition is true the container will be rendered. (eg. linkIf(bool $condition, string $route, ?string $title = null, bool $strict = false))

MenuContainer: linkIf, dropdownIf, textIf, contentIf

DropdownContainer: linkIf, headerIf, dividerIf

Look & Feel

Currently the default look and feel is based on Bootstrap 4.

You can customize every Blade component by publishing them (php artisan vendor:publish --provider="Kaishiyoku\LaravelMenu\ServiceProvider")

License

MIT (https://github.com/Kaishiyoku/laravel-menu/blob/master/LICENSE)

Author

Twitter: @kaishiyoku
Website: https://andreas-wiedel.de


All versions of laravel-menu with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
illuminate/support Version ^6.0|^7.0|^8.0
illuminate/contracts Version ^6.0|^7.0|^8.0
illuminate/routing Version ^6.0|^7.0|^8.0
illuminate/view Version ^6.0|^7.0|^8.0
cjstroud/classnames-php Version ^1.0
graham-campbell/security Version ^9.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 kaishiyoku/laravel-menu contains the following files

Loading the files please wait ....