Download the PHP package moinframe/kirby-linkcheck without Composer
On this page you can find all versions of the php package moinframe/kirby-linkcheck. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moinframe/kirby-linkcheck
More information about moinframe/kirby-linkcheck
Files in moinframe/kirby-linkcheck
Package kirby-linkcheck
Short Description Kirby CMS plugin to crawl a website and check for broken links. From the Kirby Panel or via the CLI.
License MIT
Homepage https://github.com/moinframe/kirby-linkcheck
Informations about the package kirby-linkcheck
Kirby Linkcheck
A Kirby CMS plugin that crawls a website, discovers all links, and checks them for broken HTTP responses. Results are displayed in a Panel section or via the CLI.
The crawler follows all same-domain links to discover pages, then verifies every link it finds: both internal and external. It supports seeding from sitemap.xml files.
Requirements
- PHP 8.3+
- Kirby CMS 5.3+
- Kirby CLI (optional, for the
kirby linkcheckcommand)
Installation
Usage
There are two ways to use this plugin:
- Panel section: add a section to any blueprint and check links directly from the Kirby Panel
- CLI command: run
kirby linkcheckfrom the terminal
Panel Section
Add the section to any blueprint:
How It Works
- Enter a URL and click Check Links
- The crawler runs and returns results directly
- A results table shows all non-200 links with status, source page, and linked URL
CLI Command
Check your site for broken links from the terminal:
The command crawls the site, then prints a summary and lists all broken links:
Status code 0 means the connection failed entirely (DNS error, timeout, etc.).
URL Handling
- Relative URLs are resolved against the page they were found on
- Fragment identifiers (
#section) are stripped mailto:,javascript:,tel:, anddata:schemes are skipped.and..path segments are resolved- Protocol-relative URLs (
//cdn.example.com) inherit the base scheme - Duplicate URLs are deduplicated per page
Same-Domain Detection
A link is considered same-domain if its host matches the start URL's host exactly. Subdomains are treated as external (e.g., if the start URL is example.com, links to www.example.com are external).
PHP Configuration for Large Sites
For sites with many pages you may need to adjust your PHP configuration:
The CLI command is not affected by max_execution_time (PHP CLI has no time limit by default).
License
MIT