Download the PHP
package kalnoy/illuminate-menu without Composer
On this page you can find all versions of the php package
kalnoy/illuminate-menu. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
A menu builder for Laravel 4-5 using Bootstrap's markup.
Документация на Русском
Note that this package is shipped with no styles nor scripts, you have to download them manually from Twitter
Bootstrap's site.
Installation
Install using Composer:
Add a service provider:
And a facade:
Documentation
Rendering a menu:
Where $attributes is optional array of html attributes for ul element.
Rendering a list of menu items:
Rendering a single menu item:
See a list of available options below.
Basic example:
Rendering an item with a drop down menu:
Controlling whether the item is visible:
Item options
You can specify an array of following options:
label is a label of the item, automatically translated, so you can specify lang string id
url is the url which can be a full URI or local path
route to specify a route, possibly with parameters
secure; specify true to make url be secure (doesn't affect route option)
items is an array of items for drop down menu
linkOptions is an array of additional link attributes
Changing the state of the item:
visible is a boolean value or closure to specify whether the item is visible
active is a boolean value or closure to specify whether to add active class to item; if not specified, determined
automatically based on current url
disabled is a boolean value or closure to specify whether the menu item is disabled
Presentation options:
icon is a glyphicon id, i.e. pencil
badge is a value for badge (scalar or closure)
and any other parameter that will be rendered as an attribute for <li> element.
Customization
Though this menu builder intended to be used together with bootstrap markup, you can customize it however you like by
extending Illuminate\Html\MenuBuilder class and overriding base methods.
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 kalnoy/illuminate-menu contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.