PHP code example of catpow / simple-broken-link-finder

1. Go to this page and download the library: Download catpow/simple-broken-link-finder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

catpow / simple-broken-link-finder example snippets




$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));
}