Skip to content

Latest commit

 

History

History
134 lines (122 loc) · 12.5 KB

PLUGINS.md

File metadata and controls

134 lines (122 loc) · 12.5 KB

Plugins

AdminerEvo and AdminerEvo Editor can be extended by plugins. To use a plugin

Name / link Description
plugin Required to run any plugin
database-hide Hide some databases from the interface - just to improve design, not a security plugin
designs Allow switching designs
dump-alter Exports one database (e.g. development) so that it can be synced with other database (e.g. production)
dump-bz2 Dump to Bzip2 format
dump-date Include current date and time in export filename
dump-json Dump to JSON format
dump-xml Dump to XML format in structure <database name="><table name="><column name="> value
dump-zip Dump to ZIP format
edit-calendar Display jQuery UI Timepicker for each date and datetime field
edit-foreign Select foreign key in edit form
edit-textarea Use <textarea> for char and varchar
enum-option Use <select><option> for enum edit instead of <input type="radio">
enum-types Use <select><option> for enum edit instead of regular input text on enum type in PostgreSQL
file-upload Edit fields ending with _path by <input type="file"> and link to the uploaded files from select
foreign-system Link system tables (in mysql and information_schema databases) by foreign keys
frames Allow using Adminer inside a frame
json-column Display JSON values as table in edit
login-otp Require One Time Password at login
login-servers Display constant list of servers in login form
login-password-less Enable login without password (example)
login-ssl Connect to MySQL using SSL
login-table Authenticate a user from the login table
master-slave Execute writes on master and reads on slave
pretty-json-column Pretty print JSON values in edit
slugify Prefill field containing _slug with slugified value of a previous field (JavaScript)
sql-log Log all queries to SQL file
struct-comments Show comments of sql structure in more places (mainly where you edit things)
tables-filter Filter names in tables list
tinymce Edit all fields containing _html by HTML editor TinyMCE and display the HTML in select
translation Translate all table and field comments, enum and set values from the translation table (automatically inserts new translations)
version-noverify Disable version checker
wymeditor Edit all fields containing _html by HTML editor WYMeditor and display the HTML in select

User contributed plugins

Name / link Author Description
allowed-prefixes Martin Macko Show only tables with user set prefixes
checkbox-select Alexander Shabunevich Check multiple checkboxes at once by Shift+click.
colorfields Prema van Smuuf
convention-foreign-keys Ivan Nečas Links for foreign keys by convention user_id => users.id
convention-foreign-keys Michal Mikoláš Links for foreign keys by convention user_id => users.id
AdminerCopy Adil Yildiz
Camera Upload Marcelo Gennari
cellformula Tommy Tan
CustomizeThemeBasedOnServer Michael Mokroß
Disable tables Andrea Mariani
DisplayForeignKeyName Bruno Vibert
DumpMarkdownDict
dump-markdown Federico Thiella
dump-xml-dataset Michal Brašna Dump to XML format specifically PHPUnit's XML DataSet structure
FasterTablesFilter Martin Macko
favorites tables Ladislav Ševcůj
FillLoginForm Pavel Kutáč
fk-disable Andrea Mariani
floatThead Stano Paška Floating table header plugin
folder-import Joshua
ForeignKeys Marek Hučík
hidePgSchemas Martin Jagr Hide schemas with pg_ prefix
HideTables Pavel Kutáč
HideableColumns Stephan
input-uuid-generator Pavel Kutáč
ispconfig Natan Felles Authenticate and auto-check host by ISPConfig Remote API
JsonVarDumper Marc Christenfeldt
login-servers-enhanced CrazyMax Fork of the official login-servers Adminer plugin with enhancements
nette-user-login Mikuláš Dítě
one-click-login Sérgio Freitas
PHP Export Adrian Andreescu
PHP Serialized Data Don Wilson
readable-dates Dora Bulkins Replaces UNIX timestamps with human-readable dates in your local format
resize Tiago Gil Marques Left column (tables) resizer (allow you to resize left table column)
restore-menu-scroll Jiří Petruželka Remembers and restores scollbar position of side menu
SchemaDefaultToPublic Martin Zubek
SearchAutocomplete Stephan
SQLite3 without password François Capon
StickyColumns Stephan
suggest-tablefields Andrea Mariani
table-filter Gábor Zabojszky-Horvath Quickly filtering tables, works only with custom themes where table list is floated
table-header-scroll Jonathan Vollebregt Makes the table header scroll with the viewport
tablesCollapse Tiago Gil Marques Left column tables collapse (allows you to collapse tables, and translations tables with some sufix patterns, like phpmyadmin)
tables_fuzzy_search Bruno Duyé Fuzzy search (filter) in tables list
tables-history Ale Rimoldi
tree-view Petro Kostyuk
login-serversjson-previewsimple-menucollations Pematon
Adminer Bootstrap-Like Design Natan Felles
Theme for Adminer Pematon Responsive touch-friendly theme
Theme Switcher Victor Nogueira

To use a plugin

Create a PHP file specifying which plugins do you want to use:

<?php
function adminer_object() {
    // required to run any plugin
    include_once "./plugins/plugin.php";
    
    // autoloader
    foreach (glob("plugins/*.php") as $filename) {
        include_once "./$filename";
    }
    
    // enable extra drivers just by including them
    //~ include "./plugins/drivers/simpledb.php";
    
    $plugins = array(
        // specify enabled plugins here
        new AdminerDumpXml(),
        new AdminerTinymce(),
        new AdminerFileUpload("data/"),
        new AdminerSlugify(),
        new AdminerTranslation(),
        new AdminerForeignSystem(),
    );
    
    /* It is possible to combine customization and plugins:
    class AdminerCustomization extends AdminerPlugin {
    }
    return new AdminerCustomization($plugins);
    */
    
    return new AdminerPlugin($plugins);
}

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