mdevrees/module-devtoolbar

Add a developer toolbar to your Magento2 Hyva instance

Maintainers

Package info

gitlab.com/mdevrees-magento2-modules/devtoolbar

Issues

Type:magento2-module

pkg:composer/mdevrees/module-devtoolbar

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

0.1.2 2026-05-13 14:21 UTC

This package is auto-updated.

Last update: 2026-05-13 12:37:26 UTC


README

A developer toolbar for Hyva-based Magento 2 frontends. Provides quick-access shortcuts for customer login, add-to-cart, and cache management during development.

Requirements

  • Magento 2 (Open Source or Commerce)
  • Hyva theme (Alpine.js frontend)

Installation

composer require --dev mdevrees/module-devtoolbar
bin/magento module:enable Mdevrees_DevToolbar
bin/magento setup:upgrade

Note: This module is intended for development environments only. It is registered as a --dev dependency and should not be installed in production.

Configuration

Navigate to Stores > Configuration > Developer Toolbar to set:

  • Customer email / password — used by the login shortcut
  • Product SKU — used by the add-to-cart shortcut

Credentials are encrypted at rest.

Features

  • One-click login — logs in as the configured customer
  • Quick add-to-cart — adds the configured product SKU
  • Cache management — view cache type statuses and flush individual or all caches
  • Admin product edit link — quick-link from the frontend product page to the backend editor

Development with Lando

This project includes a .lando.yml with a PHP 8.4 CLI service and the required PHP extensions (ftp, xsl, sockets).

# Start the environment
lando start

# Install dependencies (platform reqs excluded inside Lando)
lando composer install

# Static analysis
lando phpstan

# PHPCS
lando phpcs

# PHPCS auto-fix
lando phpcbf

Without Lando

# Install dependencies
composer install --ignore-platform-reqs

# Static analysis
vendor/bin/phpstan analyze

# PHPCS
vendor/bin/phpcs -p --runtime-set testVersion 8.4

# PHPCS auto-fix
vendor/bin/phpcbf

Planned

  • [ ] Runtime check that developer mode is active before enabling the toolbar