Skip to content

Usefull plugins for Adminer database tool.

License

Notifications You must be signed in to change notification settings

pematon/adminer-plugins

Repository files navigation

Plugins for Adminer

Usefull plugins for Adminer database tool.

End of life

This project is almost at the end of its life. We switched to 👉 our own Adminer fork 👈 some time ago and now we are moving forward to version 5. This will include a new theme and configuration that will replace adminer-theme and all plugins in adminer-plugins.

Compatibility

Minimal requirements are: PHP 5.6, Adminer 4.4.

AdminerLoginServers

Displays constant list of servers in login form. Configuration is similar to the original "login-servers" plugin but – the killer feature – each server can have a different driver!

AdminerJsonPreview

Displays JSON data as a table.

AdminerSimpleMenu

Displays only one prefered action in table list. Get rid of schizophrenic decisions between selecting data and showing table structure. Optimize your workflow!

AdminerCollations

Allows to set custom character sets in collation select boxes. No more scrolling through 197 options to find utf8mb4_general_ci!

How to use

  1. Download and install Adminer tool.

  2. Download plugins you want and place them to plugins folder.

File structure will be:

- plugins
	- AdminerJsonPreview.php
	- ...
- adminer.php
  1. Create index.php file and configure plugins.
<?php

	function adminer_object()
	{
		// required to run any plugin
		include_once "./plugins/plugin.php";

		// autoloader
		foreach (glob("plugins/*.php") as $filename) {
			include_once "./$filename";
		}

		$plugins = [
			// specify enabled plugins here
			new AdminerSimpleMenu(),
		];

		return new AdminerPlugin($plugins);
	}

	// include original Adminer or Adminer Editor
	include "./adminer.php";

Final file structure will be:

- plugins
	- AdminerJsonPreview.php
	- ...
	- plugin.php
- adminer.php
- index.php