silex/web-profiler
最新稳定版本:v2.0.11
Composer 安装命令:
composer require silex/web-profiler
包简介
A WebProfiler for Silex
README 文档
README
WARNING: Silex is in maintenance mode only. Ends of life is set to June 2018. Read more on Symfony's blog.
The Silex Web Profiler service provider allows you to use the wonderful Symfony web debug toolbar and the Symfony profiler in your Silex 2.x application.
Note
If you are using the 1.x Silex version, read the specific documentation.
To install this library, run the command below and you will get the latest version:
composer require 'silex/web-profiler:^2.0'
And enable it in your application:
use Silex\Provider; $app->register(new Provider\WebProfilerServiceProvider(), array( 'profiler.cache_dir' => __DIR__.'/../cache/profiler', 'profiler.mount_prefix' => '/_profiler', // this is the default ));
The provider depends on ServiceControllerServiceProvider,
TwigServiceProvider, and HttpFragmentServiceProvider so you also need
to enable those if that's not already the case:
$app->register(new Provider\HttpFragmentServiceProvider()); $app->register(new Provider\ServiceControllerServiceProvider()); $app->register(new Provider\TwigServiceProvider());
If you are using FormServiceProvider, the WebProfilerServiceProvider
will detect that and enable the corresponding panels.
Make sure to register all other required or used service providers before
WebProfilerServiceProvider.
If you are using MonologServiceProvider for logs, you must also add
symfony/monolog-bridge as a Composer dependency to get the
logs in the profiler.
If you are using VarDumperServiceProvider, add symfony/debug-bundle as
a Composer dependency to display VarDumper dumps in the toolbar and the
profiler.
If you are using symfony/security, add symfony/security-bundle as
a Composer dependency to display Security related information in the toolbar
and the profiler.
silex/web-profiler 适用场景与选型建议
silex/web-profiler 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.59M 次下载、GitHub Stars 达 208, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 silex/web-profiler 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silex/web-profiler 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.59M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 215
- 点击次数: 36
- 依赖项目数: 94
- 推荐数: 7
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04