Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fprochazka/adminer-colors
https://github.com/fprochazka/adminer-colors
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fprochazka/adminer-colors
- Owner: fprochazka
- Created: 2015-02-08T14:47:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T18:06:25.000Z (over 8 years ago)
- Last Synced: 2024-10-17T22:59:35.549Z (22 days ago)
- Language: PHP
- Homepage: https://filip-prochazka.com/blog/obarvete-si-adminer
- Size: 158 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adminer Colors
Motivation: https://filip-prochazka.com/blog/obarvete-si-adminer
Thanks to [Ladislav Marek](https://github.com/lm) for making this look nicer than I did :)
## Usage
Simply add new instance of the plugin in your `$plugins` as the [official documentation states](http://www.adminer.org/cs/plugins/#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";
}$plugins = array(
// specify enabled plugins here
new AdminerColors(array(
# specify as many servers as you want
'127.0.0.1' => '#009245',
'dev.server.cz' => '#F7931E',
'www.server.cz' => '#ED1C24',
)),
);return new AdminerPlugin($plugins);
}// include original Adminer or Adminer Editor
include "./adminer.php";```
# What you get
![preview](https://raw.githubusercontent.com/fprochazka/adminer-colors/master/docs/preview.png)