2017 © Pedro Peláez
 

library website-analyzer

image

corycollier/website-analyzer

  • Thursday, April 20, 2017
  • by corycollier
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Website Analyzer

Build Status, (*1)

This library allows a user to run through a list of websites, and determine which ones provide a positive response, and if so, aggregate a bunch of information about them., (*2)

Usage

<?php
require 'vendor/autoload.php';

use 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'));

The Versions