{"id":14975352,"url":"https://github.com/onecentlin/laravel-adminer","last_synced_at":"2025-05-14T23:06:46.886Z","repository":{"id":2384061,"uuid":"46409387","full_name":"onecentlin/laravel-adminer","owner":"onecentlin","description":"Adminer database manager for Laravel 5+","archived":false,"fork":false,"pushed_at":"2025-03-12T08:17:11.000Z","size":2348,"stargazers_count":251,"open_issues_count":3,"forks_count":47,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-21T08:10:25.485Z","etag":null,"topics":["adminer","database-management","laravel","laravel-adminer","laravel-package","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onecentlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-18T09:44:35.000Z","updated_at":"2025-04-04T10:40:06.000Z","dependencies_parsed_at":"2024-03-02T14:29:48.873Z","dependency_job_id":"d58fd155-c5a6-46c0-a2dd-56e89b372dab","html_url":"https://github.com/onecentlin/laravel-adminer","commit_stats":{"total_commits":43,"total_committers":10,"mean_commits":4.3,"dds":0.2325581395348837,"last_synced_commit":"7a226df15d60efda1583944d1505835ba6dcbd95"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecentlin%2Flaravel-adminer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecentlin%2Flaravel-adminer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecentlin%2Flaravel-adminer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecentlin%2Flaravel-adminer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onecentlin","download_url":"https://codeload.github.com/onecentlin/laravel-adminer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243360,"owners_count":22038046,"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","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":["adminer","database-management","laravel","laravel-adminer","laravel-package","php"],"created_at":"2024-09-24T13:51:54.674Z","updated_at":"2025-05-14T23:06:41.867Z","avatar_url":"https://github.com/onecentlin.png","language":"PHP","readme":"# Laravel Adminer Database Manager\n\nLight weight [Adminer](https://www.adminer.org) database management tool integrated into Laravel 5 and above.\n\nVarious database support: MySQL, SQLite, PostgreSQL, Oracle, MS SQL, Firebird, SimpleDB, MongoDB, Elasticsearch, and etc.\n\n## v8.0 Update\n\n- Adminer update to v5.0.x (namespace added)\n\n\u003e Notice: if you are using plugins, please check namespace with `Adminer`.\n\n## v7.2 Update\n\n- Laravel 12.x Compatibility\n- Adminer update to v4.17.1\n\n## v7.0 New Features\n\n- Laravel 11.x Compatibility\n- Adminer plugins support\n\n## v6.0 New Features\n\n Make life easier with minimized package setup =)\n\n- Enable laravel auto package discovery\n- New config setting: `middleware` (default value: `auth`)\n- Enable env variables to setup adminer config\n    - `ADMINER_ENABLED`\n    - `ADMINER_AUTO_LOGIN`\n    - `ADMINER_ROUTE_PREFIX`\n\n## Installation\n\n```\ncomposer require onecentlin/laravel-adminer\n```\n\nOR\n\nUpdate `composer.json` in require section:\n\n```json\n\"require\": {\n    \"onecentlin/laravel-adminer\": \"^7.0\"\n},\n```\n\nRun:\n```\ncomposer update onecentlin/laravel-adminer\n```\n\n## Register package\n\n\u003e Laravel auto package discovery feature added since package v6.0, you may skip this step.\n\nUpdate `config/app.php`\n\n```php\n'providers' =\u003e [\n    ...\n    Onecentlin\\Adminer\\ServiceProvider::class,\n];\n```\n\n## Publish config and theme file\n\n```\nphp artisan vendor:publish --provider=\"Onecentlin\\Adminer\\ServiceProvider\"\n```\n\nThis action will copy two files and one folder:\n\n- `config/adminer.php` - Adminer config file\n- `public/adminer.css` - Adminer theme file\n- `resources/plugins`  - Adminer plugins directory\n\n### config file: `config/adminer.php`\n\n```php\n\u003c?php\n\nreturn [\n    'enabled' =\u003e env('ADMINER_ENABLED', true),\n    'autologin' =\u003e env('ADMINER_AUTO_LOGIN', false),\n    'route_prefix' =\u003e env('ADMINER_ROUTE_PREFIX', 'adminer'),\n    'middleware' =\u003e 'auth',\n    'plugins' =\u003e [],\n];\n```\n\n\u003e \u003cspan style=\"color: #a00\"\u003eATTENSION: Please only enable autologin with authenticated protection.\u003c/span\u003e\n\n### theme file: `public/adminer.css`\n\nYou may download `adminer.css` from [Adminer](https://www.adminer.org) or create custom style, and place it into `public` folder.\n\n## Setup Access Permission (Middleware)\n\n\u003e Package v6.0 allow customized middleware config, you may skip this step or modify to fit your needs.\n\n### Laravel 11 middleware setup changes\n\nSince Laravel v11 remove `Kernel.php`, the middleware setup point to `bootstrap/app.php`\n\nAdd your middleware group in `withMiddleware` section:\n\n```php\nreturn Application::configure(basePath: dirname(__DIR__))\n    -\u003ewithProviders()\n    -\u003ewithRouting()\n    -\u003ewithMiddleware(function (Middleware $middleware) {\n\n        // [SETUP HERE] Adminer Middleware group\n        $middleware-\u003egroup('adminer', [\n            \\Illuminate\\Cookie\\Middleware\\EncryptCookies::class,\n            \\Illuminate\\Session\\Middleware\\StartSession::class,\n            \\Illuminate\\Auth\\Middleware\\Authenticate::class,\n        ]);\n\n    })\n    -\u003ewithExceptions(function (Exceptions $exceptions) {\n        //\n    })-\u003ecreate();\n```\n\n### Laravel 5.2 and above\n\nSetup for middleware group supported for Laravel 5.2 above (~v10)\n\nModify `config/adminer.php` : `'middleware' =\u003e 'adminer',`\n\nModify `app/Http/Kernel.php` file with `adminer` in `$middlewareGroups`\n\n```php\nprotected $middlewareGroups = [\n    ...\n    'adminer' =\u003e [\n        \\App\\Http\\Middleware\\EncryptCookies::class,\n        \\Illuminate\\Session\\Middleware\\StartSession::class,\n        // TODO: you may create customized middleware to fit your needs\n        // example uses Laravel default authentication (default protection)\n        \\Illuminate\\Auth\\Middleware\\Authenticate::class,\n    ],\n];\n```\n\n## Enable Plugins\n\nDrop your plugin files in `resources/adminer/plugins`\n\nModify `config/adminer.php` : `'plugins' =\u003e []` by adding the name of the plugin class and any argument required\n\n```php\nreturn [\n    ...\n    'plugins' =\u003e [\n        'PluginClassNameWithoutArguments',\n        'PluginClassNameWithArgument' =\u003e 'argument_value',\n        'PluginClassNameWithMultipleArguments' =\u003e ['arg1', 'arg2', ...],\n    ],\n];\n```\n\n- [Adminer Plugins](https://www.adminer.org/en/plugins/)\n\n## Access adminer\n\nOpen URL in web browser\n\n```\nhttp://[your.domain.com]/adminer\n```\n\n![Screenshot](https://raw.githubusercontent.com/onecentlin/laravel-adminer/master/screenshots/adminer-db-support.png \"various database support\")\n\n## Remarks\n\nDue to function name conflicts of Laravel 5 and Adminer, adminer.php file\nfunctions `cookie()`, `redirect()` and `view()` are prefixed with `adm_` prefix.\n\nInspired by [miroc](https://github.com/miroc/Laravel-Adminer)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecentlin%2Flaravel-adminer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecentlin%2Flaravel-adminer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecentlin%2Flaravel-adminer/lists"}