MGT Developer Toolbar - Installation

Installation via Composer

To install the MGT Developer Toolbar Module for Magento 2 with composer, do the following steps.

  1. Connect via SSH to your server.

  2. Go to the Magento installation directory and execute the following command:

composer require --dev mgtcommerce/module-mgtdevelopertoolbar

If you are running a server with multiple PHP Versions, you may want to use the following command:

php8.2 /usr/local/bin/composer require --dev mgtcommerce/module-mgtdevelopertoolbar

Installation without Composer

  1. Download the file from Github.

  2. Extract archive and copy all directories from src/app/code/ to app/code/

Enable Module

  1. Enable the Mgt DeveloperToolbar module:
php8.2 bin/magento module:enable Mgt_DeveloperToolbar
  1. Run the command setup:upgrade:
php8.2 bin/magento setup:upgrade
  1. Run the command setup:di:compile to generate the DI configuration:
php8.2 bin/magento setup:di:compile
  1. Run the command setup:static-content:deploy to deploy static files:
php8.2 bin/magento setup:static-content:deploy
  1. Login into the Magento Backend and go to Stores --> Settings --> Configuration and enable the developer toolbar.
Enable MGT Developer Toolbar

  1. Done! You should see now the MGT Developer Toolbar:
Enable MGT Developer Toolbar

Disable Full Page Cache

To prevent caching issues, make sure to disable the Full Page Cache during the development.

To disable the Magento Full Page Cache, open the file app/etc/env.php and change full_page to 0.

Disable Magento Full Page Cache