1. Go to this page and download the library: Download lagdo/jaxon-adminer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lagdo / jaxon-adminer example snippets
'app' => [
// Other config options
// ...
'packages' => [
Lagdo\Adminer\Package::class => [
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
],
],
],
],
'app' => [
'packages' => [
Lagdo\Adminer\Package::class => [
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
],
'default' => 'second_server',
],
],
],
'app' => [
'packages' => [
Lagdo\Adminer\Package::class => [
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
'access' => [
'server' => true,
],
],
],
'default' => 'second_server',
'access' => [
'server' => false,
],
],
],
],
'app' => [
'packages' => [
Lagdo\Adminer\Package::class => [
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
'access' => [
'server' => false,
'databases' => ['db1', 'db2', 'db3'],
'schemas' => ['public'],
],
],
],
'default' => 'second_server',
],
],
],
'app' => [
'packages' => [
Lagdo\Adminer\Package::class => [
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
'access' => [
'server' => true,
],
],
],
'default' => 'second_server',
'access' => [
'server' => false,
],
'export' => [
'dir' => '/path/to/the/export/dir',
'url' => 'http://www.domain.com/exports',
],
],
],
],
'app' => [
'packages' => [
Lagdo\Adminer\Package::class => [
'template' => 'bootstrap3',
'servers' => [
'first_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
'second_server' => [
'name' => '', // The name to be displayed in the dashboard UI
'driver' => '', // mysql, pgsql, sqlite, mongo, oracle, mssql or elastic.
'host' => '', // The database host name or address.
'port' => 0, // The database port
'username' => '', // The database user credentials
'password' => '', // The database user credentials
],
],
],
],
],
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.