scabarcas/laravel-config-explorer
Composer 安装命令:
composer require scabarcas/laravel-config-explorer
包简介
Browse and search Laravel's runtime config() tree in the browser. For local debugging.
关键字:
README 文档
README
Browse and search Laravel's runtime config() tree in the browser. For local debugging.
php artisan config:show <key> retrieves a specific value. This package renders the full merged config tree at runtime and supports filtering by group and searching by key or value. Useful when you don't know the exact key you're looking for.
Installation
composer require scabarcas/laravel-config-explorer --dev
The service provider is auto-discovered. Visit http://your-app.test/config-explorer in your local environment.
Configuration
Publish the config file to customize:
php artisan vendor:publish --tag=config-explorer-config
return [ // null = auto-detect (debug + non-production); true/false to force. 'enabled' => env('CONFIG_EXPLORER_ENABLED'), 'route' => [ 'prefix' => 'config-explorer', 'middleware' => ['web'], 'name' => 'config-explorer.show', ], 'redact_patterns' => [ '*password*', '*secret*', '*token*', // ...add patterns specific to your app ], ];
Enabling
By default the explorer route is mounted but the request returns 404 unless:
CONFIG_EXPLORER_ENABLED=true, orAPP_DEBUG=trueandAPP_ENVis notproduction.
To expose the explorer behind authentication in a non-local environment (e.g. staging), enable it explicitly and add middleware:
'enabled' => true, 'middleware' => ['web', 'auth', 'can:viewConfigExplorer'],
Security
Configuration data routinely contains credentials. Config Explorer redacts keys matching the redact_patterns list before rendering. The defaults cover common cases (*password*, *secret*, *token*, *api_key*, app.key, services.*.secret, database.connections.*.password, mail.mailers.*.password) but review the list for your app before enabling this anywhere other than your local machine.
The route also emits <meta name="robots" content="noindex, nofollow"> and ships with auto-detection that returns 404 in production. If you enable it in production, gate it behind authentication.
Why?
Inspired by stechstudio/phpinfo, which solves the same problem for PHP's phpinfo(). Laravel ships php artisan config:show for known keys; this package covers the discovery side.
Testing
composer install
composer test
composer analyse
composer format
Author
Sebastian Cabarcas Berrio · sebastianberrio45@hotmail.com · @scabarcas17
License
MIT © Sebastian Cabarcas Berrio
scabarcas/laravel-config-explorer 适用场景与选型建议
scabarcas/laravel-config-explorer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 05 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「configuration」 「debugging」 「config」 「laravel」 「inspector」 「explorer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 scabarcas/laravel-config-explorer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 scabarcas/laravel-config-explorer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 scabarcas/laravel-config-explorer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Configuration component
A Zend Framework module to quickly and easily set PHP settings.
A PHP package that takes a snapshot of your application and allows you to retrieve it later to help with debugging.
Laravel Database Query Logger and debug helper.
Utils to load, parse and work with configuration on Mezzio projects
Server environment detection based on config array-file
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-25