PHPackages                             imperat0r/laravel-adminer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. imperat0r/laravel-adminer

ActiveLibrary[Admin Panels](/categories/admin)

imperat0r/laravel-adminer
=========================

Adminer (by Jakub Vrana) wrapper for Laravel 5

013PHP

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/xjw0914/Laravel-Adminer)[ Packagist](https://packagist.org/packages/imperat0r/laravel-adminer)[ RSS](/packages/imperat0r-laravel-adminer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Adminer
===============

[](#laravel-adminer)

Laravel 5 wrapper for [Adminer](https://github.com/vrana/adminer/). Adminer is an excellent database management tool in a single PHP file written by Jakub Vrana. It's a great replacement for PhpMyAdmin (also supports PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB).

Usage
-----

[](#usage)

To include the library, go to your project's folder and run:

```
composer require "imperat0r/laravel-adminer:dev-master"

```

To add adminer to Laravel routes (e.g. /adminer), update `routes.php` file with:

```
Route::any('adminer', '\Miroc\LaravelAdminer\AdminerController@index');

```

To autologin Adminer with Laravel default connection, add the following controller instead:

```
Route::any('adminer', '\Miroc\LaravelAdminer\AdminerAutologinController@index');

```

### Disabling CSRF Middleware

[](#disabling-csrf-middleware)

Adminer doesn't work with VerifyCsrfToken middleware, so it has to be disabled on its route.

#### Laravel 5.1+

[](#laravel-51)

In `VerifyCsrfToken.php` disable CSRF by adding adminer route to `$except` array:

```
protected $except = [
    'adminer'
];

```

#### Laravel 5.0

[](#laravel-50)

The easiest way is to create a custom VerifyCsrfToken middleware that excludes selected routes:

```
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;

class CustomVerifyCsrfToken extends VerifyCsrfToken {

    protected $excludedRoutes = ['adminer'];

	public function handle($request, Closure $next)
	{
        if ($this->isExcludedRoute($request)){
            return $next($request);
        } else {
            return parent::handle($request, $next);
        }
	}

    private function isExcludedRoute($request)
    {
        if (count($request->segments()) > 0
            && in_array($request->segment(1), $this->excludedRoutes)){
            return true;
        } else {
            return false;
        }
    }
}

```

And then use that instead of `VerifyCsrfToken` in `Kernel.php`

```
protected $middleware = [
	'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
	'Illuminate\Cookie\Middleware\EncryptCookies',
	'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
	'Illuminate\Session\Middleware\StartSession',
	'Illuminate\View\Middleware\ShareErrorsFromSession',
	'Path\To\CustomVerifyCsrfToken',
];

```

Remarks
-------

[](#remarks)

Due to function name conflicts of Laravel5 and Adminer, adminer.php file functions 'cookie()', 'redirect()' and 'view()' are prefixed with 'adm\_' prefix.

If you find any problem, please let me know.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1182da2373547ce49bdbfca1767f5911598b30e62cf6c22e5a2bb0a96028e582?d=identicon)[ImPerat0R\_](/maintainers/ImPerat0R_)

---

Top Contributors

[![miroc](https://avatars.githubusercontent.com/u/1230714?v=4)](https://github.com/miroc "miroc (20 commits)")[![tssujt](https://avatars.githubusercontent.com/u/17313425?v=4)](https://github.com/tssujt "tssujt (4 commits)")[![jesseleite](https://avatars.githubusercontent.com/u/5187394?v=4)](https://github.com/jesseleite "jesseleite (1 commits)")[![jonasof](https://avatars.githubusercontent.com/u/5995209?v=4)](https://github.com/jonasof "jonasof (1 commits)")

### Embed Badge

![Health badge](/badges/imperat0r-laravel-adminer/health.svg)

```
[![Health](https://phpackages.com/badges/imperat0r-laravel-adminer/health.svg)](https://phpackages.com/packages/imperat0r-laravel-adminer)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
