PHPackages                             ahmad-shawky/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. ahmad-shawky/laravel-adminer

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

ahmad-shawky/laravel-adminer
============================

Adminer (by Jakub Vrana) wrapper for Laravel 5

4.5.2(6y ago)014MITPHPPHP &gt;=5.4.0

Since Dec 17Pushed 6y agoCompare

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

READMEChangelogDependencies (1)Versions (9)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 "miroc/laravel-adminer"

```

To add adminer to Laravel routes (e.g. /adminer), update `routes/web.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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~185 days

Recently: every ~206 days

Total

8

Last Release

2501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c9e755bef1ddbd311d3e2e29955f75205addf78501b1355a6a966a29d74d2b08?d=identicon)[ahmad-shawky](/maintainers/ahmad-shawky)

---

Top Contributors

[![miroc](https://avatars.githubusercontent.com/u/1230714?v=4)](https://github.com/miroc "miroc (25 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)")[![pavoltanuska](https://avatars.githubusercontent.com/u/4980667?v=4)](https://github.com/pavoltanuska "pavoltanuska (1 commits)")[![senaranya](https://avatars.githubusercontent.com/u/5471894?v=4)](https://github.com/senaranya "senaranya (1 commits)")

---

Tags

databaselaravel5managementadminer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ahmad-shawky-laravel-adminer/health.svg)](https://phpackages.com/packages/ahmad-shawky-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)[miroc/laravel-adminer

Adminer (by Jakub Vrana) wrapper for Laravel 5

5991.9k](/packages/miroc-laravel-adminer)

PHPackages © 2026

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