mdevrees / module-devtoolbar
Add a developer toolbar to your Magento2 Hyva instance
Package info
gitlab.com/mdevrees-magento2-modules/devtoolbar
Type:magento2-module
pkg:composer/mdevrees/module-devtoolbar
Requires
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-store: ^101.1
Requires (Dev)
- bitexpert/phpstan-magento: dev-master
- dealerdirect/phpcodesniffer-composer-installer: ^1.2
- magento/magento-coding-standard: v40
- phpstan/phpstan: 2.2.x-dev
- phpstan/phpstan-strict-rules: 2.0.x-dev
- phpunit/phpunit: ^13.1@dev
- slevomat/coding-standard: ^8.22
- squizlabs/php_codesniffer: *
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
--devdependency 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