Download the PHP package heimrichhannot/contao-buttermenu-bundle without Composer

On this page you can find all versions of the php package heimrichhannot/contao-buttermenu-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 contao-buttermenu-bundle

Butter menu

A smooth animated navigation menu for contao with hover dropdown (big screens for instance) and off-canvas (mobile for instance) modes.

Technical Instructions

Styling

By default no styles are generated, set $bm-menu-generate-classes to true to style butter menu with defaults, otherwise use the provided mixins as stated below.

Required mixins for the default mode (include inside your media queries):

Required mixins for the compact off-canvas mode (include this inside your media queries):

Using the compact off-canvas mode

If you have data-bm-compact-mode set to off-canvas on your nav_buttermenu_default template, you will need an canvas wrapper and for sure an burger menu. The example below shows how it can work:

We recommend using animated Hamburger icons from Jonathan Suh. The is-active will be added automatically upon off-canvas menu is opened.

Settings

Attribute Scope Default Description
data-bm-parent-muted bm-menu touch Change to click, touch or both to prevent click on parent dropdown links
data-bm-min-left bm-menu 15 Minimum offset to left side of viewport.
data-bm-min-right bm-menu 15 Minimum offset to left side of viewport.
data-bm-columns bm-menu 2 Column count. Limit height for ul > li inside dropdowns to provide flexbox column support with proper height calculation.
data-bm-column-min bm-menu 5 Activate columns from data-bm-columns only if more than provided list item count.
data-bm-compact-breakpoint bm-menu 768 The viewport breakpoint width below buttermenu will work in mobile compact mode.
data-bm-arrow-alignment bm-menu center Change to left, right or center to align arrow with navigation text.
data-bm-compact-mode bm-menu off-canvas Change to default for normal hover/touch dropdown-toggle, or to off-canvas for an mobile menu with burger menu.
data-bm-compact-canvas bm-menu null Declare the css-selector for the canvas container e.g. .bm-compact-canvas
data-bm-compact-toggle any off-canvas open/close trigger null Declare the off-canvas container css selector e.g. .bm-compact-canvas on any open/close trigger like the burger menu button.
data-bm-compact-show-current bm-menu false If tru, upon open buttermenu in compact mode current active submenu is active (set to false for proper accessibility support)

All versions of contao-buttermenu-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
contao/core-bundle Version ^4.9
heimrichhannot/contao-encore-bundle Version ^1.5
symfony/config Version ^3.4 || ^4.4 || ^5.4
symfony/http-kernel Version ^3.4 || ^4.4 || ^5.4
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 heimrichhannot/contao-buttermenu-bundle contains the following files

Loading the files please wait ....