PHP code example of elephant / status

1. Go to this page and download the library: Download elephant/status 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/ */

    

elephant / status example snippets


use Elephant\Elephant;
use Elephant\Parser\SitemapParser;
use Elephant\Reports\DisplayReport;

$report = new DisplayReport();
$sitemap = new SitemapParser('sitemap.xml', false, true, 20);

$elephant = new Elephant([
    'base_uri' => 'https://foo.com',
    'parser' => $sitemap,
    'report' => $report
]);

$elephant->generateReport();