PHPackages                             alanmburr/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. [Database &amp; ORM](/categories/database)
4. /
5. alanmburr/laravel-adminer

ActiveLibrary[Database &amp; ORM](/categories/database)

alanmburr/laravel-adminer
=========================

Adminer (by Jakub Vrana) wrapper for Laravel 5+

v4.8.1(2y ago)016MITPHPPHP ^7.4|^8.0

Since Apr 5Pushed 2y agoCompare

[ Source](https://github.com/alanmburr/Laravel-Adminer)[ Packagist](https://packagist.org/packages/alanmburr/laravel-adminer)[ RSS](/packages/alanmburr-laravel-adminer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

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

[](#laravel-adminer)

Laravel 10 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, MSSQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB).

Note
----

[](#note)

This package was originally built for Laravel 5, so some *information* may be outdated. However, the package should still function properly.

Usage
-----

[](#usage)

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

```
composer require "alanmburr/laravel-adminer"
```

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

```
Route::any('adminer', [\AlanMBurr\LaravelAdminer\AdminerController::class, 'index']);
```

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

```
Route::any('adminer', [\AlanMBurr\LaravelAdminer\AdminerAutologinController::class, '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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.8% 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.

###  Release Activity

Cadence

Every ~477 days

Total

3

Last Release

910d ago

Major Versions

v2.0 → v4.8.12023-11-14

PHP version history (2 changes)v4.8.0PHP 7.\*

v2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bd59e1d53945fde6f00453af8e073def3d9ba0453e4736d05bcff96a5d05d7a?d=identicon)[alanmburr](/maintainers/alanmburr)

---

Top Contributors

[![miroc](https://avatars.githubusercontent.com/u/1230714?v=4)](https://github.com/miroc "miroc (25 commits)")[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (2 commits)")[![alanmburr](https://avatars.githubusercontent.com/u/54408289?v=4)](https://github.com/alanmburr "alanmburr (2 commits)")[![senaranya](https://avatars.githubusercontent.com/u/5471894?v=4)](https://github.com/senaranya "senaranya (1 commits)")[![jonasof](https://avatars.githubusercontent.com/u/5995209?v=4)](https://github.com/jonasof "jonasof (1 commits)")[![jesseleite](https://avatars.githubusercontent.com/u/5187394?v=4)](https://github.com/jesseleite "jesseleite (1 commits)")[![pavoltanuska](https://avatars.githubusercontent.com/u/4980667?v=4)](https://github.com/pavoltanuska "pavoltanuska (1 commits)")

---

Tags

databasemanagementadminerlaravel10

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[onecentlin/laravel-adminer

Laravel Adminer Database Manager

260491.1k3](/packages/onecentlin-laravel-adminer)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)

PHPackages © 2026

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