Using a custom PhpMyAdmin 4.x theme in Lando

phpMyAdminopen in new window is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. See the lando docs regarding phpMyAdmin for help enabling the service.

Only for PhpMyAdmin 4.x

Note that this guide is only applicable to the 4.x branch of PhpMyAdmin. You'll want to consult the docs for how to do this in 5.x

This is a basic setup to help you enable extra themes.

Getting Started

Add the build script to your Lando recipe where you should have the phpMyAdmin service already.

    type: phpmyadmin:4.7
      - chmod +x /app/.lando/
      - /app/.lando/

Create script to download and install the third-party theme

Create the custom file.

touch .lando/
vim .lando/

The location of this file is arbitrary. We placed it inside .lando/ folder simply because we find it convenient.

if [ ! -z $LANDO_MOUNT ]; then
  unzip -d /www/themes/

Checkout the available themes hereopen in new window. Make sure you choose a theme compatible with your version of phpMyAdmin. Modify the script according to the theme you want.

Set new theme as the default

Review the phpMyAdmin docs to see how to hook up your config file.

Add this line to your config:


  // Set whichever theme you have available here.
  $cfg['ThemeDefault'] = 'pmaterial';


Rebuild your environment

lando rebuild -y


Check the output from lando or run lando info to get the url for the phpMyAdmin service.