Download the PHP package zerkalica/millwright-menu-bundle without Composer

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

Using menus with MillwrightMenuBundle

MillwrightMenuBundle extends base functionality of KnpMenuBundle and adds configuration, route, translation and security context support. Each link on the site is a part of configured menu container, which supports translation, role and acl-based security, route params.

Basic Docs

Features

  1. It uses JMSSecurityExtraBundle annotations for configuring menu items visibility: role-based and acl-based security context support

  2. Menu options consist of two parts:

    • items describes each menu item: labels, route|uri, translate, role
    • tree describes each menu container as hierarchy of menu items
  3. items can be configured from config file and annotations in controller class and actions

  4. We can juggle any configured menu items in containers

  5. Menu twig helper supports route parameters, needed for changing menu items visibility on demand, based on acl

  6. Menu options merged from multiple sources: tree section of config, item section, @Menu annotations in action method, @Menu annotation in controller class

Installation

Step 1) Composer

Require the bundle through composer

Step 2) Register the bundle

To start using the bundle, register it in your Kernel:

Step 3) Configure knp bundle

Creating menus

Any bundle can provide own menu or modify existing through millwright_menu.menu_options tagged service:

order attribute - order of provided menu. First parameter is the collection of menu options. By default one menu provided by MillwrightMenuBundle and configured in millwright_menu section of the application config.

Using annotations

Items section can be configured from annotations:

Using menu in templates

millwright_menu_render supports additional route parameters, the other options are equivalent to knp_menu_render.

Simpe usage

Advanced

We have a user collection, each user has acl permissions

Menu item options

items section:

tree section:

renderers section:

Annotation options

@Menu annotation supports: label, translateDomain, translateParameters, name, showNonAuthorized, showAsText options.

Example

//@todo sandbox

Menu file:


All versions of millwright-menu-bundle with dependencies

PHP Build Version
Package Version
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 zerkalica/millwright-menu-bundle contains the following files

Loading the files please wait ....