PHP code example of ait / website-analyzer
1. Go to this page and download the library: Download ait/website-analyzer 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/ */
ait / website-analyzer example snippets
WebsiteAnalyzer\ListBuilder;
ini_set('error_log', 'errors.log');
// Define all of the constants
$urls = array_map('trim', file('data/sites.txt'));
$builder = new ListBuilder();
$results = $builder
->process($urls)
->getResults();
print_r($results->getMetrics('technology-stack'));
print_r($results->getMetrics('css-complexity'));
print_r($results->getMetrics('dns-data'));
print_r($results->getMetricSet('whois-data.regyinfo.registrar'));
print_r($results->getMetricSet('whois-data.regrinfo.domain.nserver'));