{"id":15190107,"url":"https://github.com/skydiver/laravel-adminer","last_synced_at":"2025-10-02T05:30:24.831Z","repository":{"id":57052818,"uuid":"48817324","full_name":"skydiver/Laravel-Adminer","owner":"skydiver","description":"Adminer wrapper for Laravel 5","archived":false,"fork":true,"pushed_at":"2016-09-01T17:56:37.000Z","size":337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T23:33:22.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"miroc/Laravel-Adminer","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skydiver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-30T19:59:20.000Z","updated_at":"2020-10-04T04:24:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/skydiver/Laravel-Adminer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skydiver/Laravel-Adminer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2FLaravel-Adminer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2FLaravel-Adminer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2FLaravel-Adminer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2FLaravel-Adminer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skydiver","download_url":"https://codeload.github.com/skydiver/Laravel-Adminer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skydiver%2FLaravel-Adminer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277958663,"owners_count":25905749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T20:04:34.644Z","updated_at":"2025-10-02T05:30:24.530Z","avatar_url":"https://github.com/skydiver.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel-Adminer\nLaravel 5 wrapper for [Adminer](https://github.com/vrana/adminer/).\nAdminer 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).\n\n\n## Usage\nTo include the library, update `composer.json` file `require` section, with:\n```\n\"miroc/laravel-adminer\": \"dev-master\"\n```\nand run `composer update`.\n\n\nTo add adminer to Laravel routes (e.g. /adminer), update `routes.php` file with:\n```\nRoute::any('adminer', '\\Miroc\\LaravelAdminer\\AdminerController@index');\n```\n\n### Disabling CSRF Middleware\nAdminer doesn't work with VerifyCsrfToken middleware, so it has to be disabled on its route.\n#### Laravel 5.1+\nIn `VerifyCsrfToken.php` disable CSRF on adminer route by adding it to `$except` array:\n```\nprotected $except = [\n    'adminer'\n];\n```\n\n#### Laravel 5.0\nThe easiest way is to create a custom VerifyCsrfToken middleware that excludes selected routes:\n```\nuse Closure;\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken;\n\nclass CustomVerifyCsrfToken extends VerifyCsrfToken {\n\n    protected $excludedRoutes = ['adminer'];\n\n\tpublic function handle($request, Closure $next)\n\t{\n        if ($this-\u003eisExcludedRoute($request)){\n            return $next($request);\n        } else {\n            return parent::handle($request, $next);\n        }\n\t}\n\n    private function isExcludedRoute($request)\n    {\n        if (count($request-\u003esegments()) \u003e 0\n            \u0026\u0026 in_array($request-\u003esegment(1), $this-\u003eexcludedRoutes)){\n            return true;\n        } else {\n            return false;\n        }\n    }\n}\n\n```\n\nAnd then use that instead of `VerifyCsrfToken` in `Kernel.php`\n```\nprotected $middleware = [\n\t'Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode',\n\t'Illuminate\\Cookie\\Middleware\\EncryptCookies',\n\t'Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse',\n\t'Illuminate\\Session\\Middleware\\StartSession',\n\t'Illuminate\\View\\Middleware\\ShareErrorsFromSession',\n\t'Path\\To\\CustomVerifyCsrfToken',\n];\n```\n\n\n## Remarks\nDue to function name conflicts of Laravel5 and Adminer, adminer.php file \nfunctions  'cookie()', 'redirect()' and 'view()' are prefixed with 'adm_' prefix.\n\nIf you find any problem, please let me know.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskydiver%2Flaravel-adminer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskydiver%2Flaravel-adminer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskydiver%2Flaravel-adminer/lists"}