ait / website-analyzer
0.6.2
2017-04-20 20:46 UTC
Requires
- guzzlehttp/guzzle: ^6.2
- illuminate/support: ^5.4
- pear/net_dns2: ^1.4
- phpwhois/phpwhois: ^4.2
- symfony/dom-crawler: ^3.2
Requires (Dev)
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^2.8
This package is not auto-updated.
Last update: 2024-11-10 03:00:23 UTC
README
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.
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'));