Download the PHP package viget/mega-menu-block without Composer

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

WordPress 6.6+ PHP 7.4+ Latest release CI status License

Mega Menu Block

Adds a Mega Menu block that can be inserted inside a Navigation item, so a menu link can open a panel containing any blocks - columns, headings, images, a nested Navigation, whatever the design calls for.

Features

Installation

Manual

  1. Download the latest release zip.
  2. Upload it via Plugins → Add New → Upload Plugin, or extract it to wp-content/plugins/mega-menu-block/.
  3. Activate the plugin.

Composer

Requires composer/installers (installed automatically as a dependency) to place the plugin in wp-content/plugins/.

Usage

  1. Edit a Navigation block.
  2. Select a menu item and use the Add Mega Menu toolbar button.
  3. Add any blocks inside the panel.

By default the panel spans the Navigation block and opens at 782px and up, matching core's Navigation breakpoint. Below that it stays in the document flow so an overlay or off-canvas mobile menu keeps working.

Theme integration

Most projects set three things:

Every filter, in PHP and in editor JavaScript, is documented in docs/api.md.

Auto-Updates

This plugin checks GitHub releases every 12 hours and surfaces available updates in Plugins in wp-admin - no wordpress.org listing required. See includes/class-github-plugin-updater.php.

Note: shipping a custom update checker is intentionally incompatible with wordpress.org's plugin directory (the Plugin Check tool flags it as a hard error under plugin_updater_detected). If this plugin is ever submitted there, the updater would need to be removed first.

Multisite

Network activation is supported. The block registers per site on init, and the updater caches release data in site transients, so one network-wide check covers every site. The plugin stores no options or post meta of its own - a Mega Menu's content lives in the Navigation block's wp_navigation post.

Development

build/ is committed so the plugin runs straight from a git checkout. CI fails if it's out of date.

Releasing

That bumps package.json, syncs the version into the plugin header and readme.txt via bin/sync-version.js, commits, tags, and pushes. The tag triggers .github/workflows/release.yaml, which builds the zip and creates the GitHub release the updater reads.

License

GPL-2.0-or-later. See LICENSE.


All versions of mega-menu-block with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
composer/installers Version ^1.0 || ^2.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 viget/mega-menu-block contains the following files

Loading the files please wait ...