Very simple command line app writen on top of Lumen framework, using DiDom HTML parser, to collect information about the markup of a given URL.
Information provided:
- Number of ocurrences per HTML tag
- Number of attributes per HTML tag
- Number of
idattributes - Number of
classattributes - Number of children elements per HTML tag
Results are exported as a .json file.
- Copy
.env.exampleto.envto set the configuration file - Run
composer install
To run the tests execute: vendor/phpunit/phpunit/phpunit
php artisan analyse <url_to_analyse>