catpow/simple-broken-link-finder

Check broken links in html and php files, not perfect but fast

v0.0.3 2024-05-09 08:03 UTC

This package is auto-updated.

Last update: 2025-09-09 10:49:09 UTC


README

So simple broken link finder.

Can't recognize is in comment or not. Can't resolve dynamic url. Ignore external link. Ignore url param.

But fast.

How To Use

require_once(__DIR__.'/vendor/autoload.php');

$broken_links=Catpow\SimpleBrokenLinkFinder\SimpleBrokenLinkFinder::search(__DIR__.'/public_html');

foreach($broken_links as $broken_link_uri=>$pages){
  printf("%s was missing in %s\n",$broken_link_uri,implode(' and ',$pages));
}