burnthebook/craft-broken-link-checker
Composer 安装命令:
composer require burnthebook/craft-broken-link-checker
包简介
Automatically detect and report broken links, missing images, and invalid embeds in Craft CMS
README 文档
README
Automatically detect and report broken links, missing images, and invalid embeds in your Craft CMS content.
Features
- 🔍 Automatic Scanning - Scans entries for broken links, missing assets, and invalid embeds
- 📊 Dashboard UI - View all broken links with filtering and sorting
- ⚠️ Entry Alerts - Warnings displayed directly in the entry editor
- 🎯 Field Type Support - Redactor, CKEditor, Matrix, Table, Assets, Plain Text, Super Table
- 🔄 Background Processing - Uses Craft's queue system for non-blocking scans
- 🖥️ CLI Commands - Scan from the command line
- 🎛️ Flexible Settings - Control what to scan, when, and how
- 🔐 Permission Controls - Granular permissions for viewing and triggering scans
Requirements
- Craft CMS 5.0+
- PHP 8.2+
Installation
- Add the plugin to your project:
composer require yourcompany/craft-broken-link-checker
- Install the plugin:
php craft plugin/install broken-link-checker
Usage
Dashboard
Navigate to Broken Link Checker in the control panel to:
- View all broken links
- Filter by section, site, or error type
- Export results as CSV
- Trigger manual scans
Entry Editing
When editing an entry with broken links, you'll see a warning banner with:
- List of broken links in that entry
- Quick rescan button
- Link to view all issues
CLI Commands
Scan all entries:
php craft broken-link-checker/scan/run
Scan specific entry:
php craft broken-link-checker/scan/run --entryId=123 --siteId=1
Run scan synchronously (wait for completion):
php craft broken-link-checker/scan/run --sync
View statistics:
php craft broken-link-checker/scan/stats
Clear all records:
php craft broken-link-checker/scan/clear
Permissions
Grant these permissions to user groups as needed:
- View broken links dashboard - View the broken links dashboard
- Trigger link scans - Manually trigger scans
- Manage plugin settings - Access plugin settings
Configuration
Settings
Access settings via Settings → Broken Link Checker or by clicking the gear icon in the plugin section.
Scanning Options:
- Choose which sections and sites to scan
- Select field types to include
- Set scan frequency (manual, hourly, daily, weekly)
- Enable scan on entry save
External URL Options:
- Set timeout duration
- Configure redirect following
- Set max redirect depth
- Limit concurrent requests
Advanced:
- Set batch size for queue processing
- Define URL patterns to ignore (wildcards or regex)
Example: Ignore Patterns
https://localhost/*
https://example.com/admin/*
/^https:\/\/.*\.local\//
Error Types
The plugin detects and categorizes these error types:
- 404 - Page not found
- 500 - Server error
- Timeout - Request timed out
- Missing Asset - Asset deleted or file missing
- Invalid Internal Link - Internal link points to non-existent entry
- Redirect Loop - Too many redirects
- SSL Error - Certificate issue
- DNS Error - Domain not resolved
Performance Considerations
- All scans run in the background via Craft's queue system
- External URL checks respect timeouts and rate limits
- Batch size can be adjusted for your server capacity
- Consider running scheduled scans during off-peak hours
Troubleshooting
Scans not running automatically:
- Check that Craft's queue is processing (run
php craft queue/run) - Verify scan frequency is not set to "Manual Only"
False positives for external links:
- Some sites block automated requests - add them to ignore patterns
- Increase timeout if sites are slow to respond
- Check if sites require specific user agents
High memory usage:
- Reduce batch size in settings
- Limit concurrent external requests
- Process fewer field types
Support
For issues, feature requests, or questions:
- GitHub Issues: [your-repo-url]
- Documentation: [your-docs-url]
License
MIT
burnthebook/craft-broken-link-checker 适用场景与选型建议
burnthebook/craft-broken-link-checker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 136 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「seo」 「broken links」 「Craft」 「craftcms」 「link checker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 burnthebook/craft-broken-link-checker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 burnthebook/craft-broken-link-checker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 burnthebook/craft-broken-link-checker 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adds tracking of broken external links to the SilverStripe CMS
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Help to manage meta data on Laravel Eloquent model
Statamic Fine Seo addon
统计信息
- 总下载量: 136
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-21