inpvlsa/magento-clockwork
Composer 安装命令:
composer require inpvlsa/magento-clockwork
包简介
Development tool for Magento 2 with timeline, database queries, cache, templates, and more. Built on Clockwork.
README 文档
README
A powerful development tool that brings advanced debugging and profiling capabilities to Magento 2.
Track timeline events, database queries, cache operations, template rendering, and more - all through an intuitive interface built on ⚙️ Clockwork.
🚀 Key Features
- Comprehensive Timeline: View and filter all page events by type or text
- Interactive Toolbar: Quick access to debugging tools
- Detailed Profiling: Track a wide range of timeline events:
- Routing processes
- Layout rendering
- Event dispatching
- Observer execution
- Collection loading
- Database Monitoring
- SQL query inspection with syntax highlighting
- Sort, search, and analyze database operations
- Template Insights: Track template rendering performance
- Cache Inspection: Monitor cache operations with identifiers, data, tags, and TTL
- Request Analysis: Examine Magento-specific and HTTP request data
- Search Integration: Track all OpenSearch/ElasticSearch queries and responses
- AJAX Support: Monitor all HTTP requests in the frontend area
📋 Requirements
- PHP 7.4+
- Magento 2 (Community Edition)
- Tested on versions:
- 2.4.3 (PHP 7.4, with 3rd party extensions)
- 2.4.6 (PHP 8.1, Hyva, 3rd party extensions)
- 2.4.7 (PHP 8.3, clean installation)
Note: Minimum tested Magento version is 2.4.3. Enterprise Edition compatibility not yet verified.
📦 Installation
# Recommended for development environments only composer require inpvlsa/magento-clockwork --dev # For dev/stage environments (see Authentication section) composer require inpvlsa/magento-clockwork
You are free now to install it to non-local instances (with no
--dev), check the Authentication section. But I strongly recommend not adding packages to production environments and use--devflag.
⚙️ Configuration
Enable the module and turn on Clockwork writing mode:
php bin/magento module:enable Inpvlsa_Clockwork php bin/magento config:set dev/clockwork/enabled 1
Storage options
By default, data is stored in files. You can change the storage method:
- Via admin panel: Stores → Advanced → Developer → Clockwork
- Or using CLI:
php bin/magento config:set dev/clockwork/data_storage file|redis
Redis Configuration Note
- Pre-set configuration of Redis storage requires Magento session storage to be configured for Redis
- The module retrieves Redis connection data from Magento deployment config if not a "custom" redis credential is set in module configuration tab
- Check logs after switching to Redis - errors will cause fallback to file storage
For detailed Redis configuration, see Redis Documentation.
🔐 Authentication
Authentication is automatically configured for local development environments.
If you can't access the /clockwork URL, add your IP to the maintenance mode whitelist.
For detailed authentication options, see Authentication Documentation.
🧩 Usage
- Navigate to
/clockworkfrom your Magento root URL - Explore timeline events grouped by type
- Use text filters to search specific information
- Utilize the button on the right of the search input for additional sorting options
- Explore logs, database queries, cache operations, collections tab, enjoy!
📸 Feature Showcase
inpvlsa/magento-clockwork 适用场景与选型建议
inpvlsa/magento-clockwork 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.16k 次下载、GitHub Stars 达 31, 最近一次更新时间为 2025 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 inpvlsa/magento-clockwork 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 inpvlsa/magento-clockwork 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-23







