aranyasen/laravel-adminer
Composer 安装命令:
composer require aranyasen/laravel-adminer
包简介
Adminer (by Jakub Vrana) wrapper for Laravel 9+
README 文档
README
Introduction
Laravel 9+ wrapper for Adminer. Adminer is a fast single-file database manager/explorer tool written by Jakub Vrana. It's a great replacement for PhpMyAdmin (also supports PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB).
This package is meant to be used with Laravel as an in-built database manager/explorer. It comes with support for Adminer plugins and themes, which super-charges an already powerful tool.
This package is inspired by: miroc/Laravel-Adminer. The reason to add this package is to keep it up-to-date with Adminer, add plugin support and a test suite (TBD).
Database view with default theme
Table view with 'rmsoft' theme
Plugins Included
Tables-filter
Adds ability to do (fuzzy) search on table names. It's especially useful when you have a large set of tables
Installation
To use this package, run:
composer require aranyasen/laravel-adminer
To use Adminer to Laravel routes (e.g. /adminer), update routes/web.php:
To autologin Adminer with Laravel default connection:
Route::any('adminer', '\Aranyasen\LaravelAdminer\AdminerAutologinController@index');
If you want to manually provide credentials on the UI instead:
Route::any('adminer', '\Aranyasen\LaravelAdminer\AdminerController@index');
Of course, you can add any middleware of your choice to restrict usage:
Route::any('adminer', '\Aranyasen\LaravelAdminer\AdminerAutologinController@index') ->middleware(['admin']);
Disabling CSRF Middleware
Adminer doesn't work with VerifyCsrfToken middleware, so it has to be disabled on its route.
In VerifyCsrfToken.php disable CSRF by adding adminer route to $except array:
protected $except = [ 'adminer' ];
To add plugins
Adminer supports a host of plugins. See CONTRIBUTING to add a new plugin
To add a new theme:
Download your favorite theme in public/, e.g.:
$ wget https://raw.githubusercontent.com/vrana/adminer/master/designs/hever/adminer.css
aranyasen/laravel-adminer 适用场景与选型建议
aranyasen/laravel-adminer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 101.96k 次下载、GitHub Stars 达 20, 最近一次更新时间为 2018 年 12 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「management」 「explorer」 「adminer」 「laravel5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aranyasen/laravel-adminer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aranyasen/laravel-adminer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aranyasen/laravel-adminer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Parses a user agent string to detect Internet Explorer
A PSR-7 compatible library for making CRUD API endpoints
A Silverstripe module to allow you to log into any of your Silverstripe sites from one place.
统计信息
- 总下载量: 101.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-23