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
id
attributes - Number of
class
attributes - Number of children elements per HTML tag
Results are exported as a .json
file.
- Copy
.env.example
to.env
to set the configuration file - Run
composer install
To run the tests execute: vendor/phpunit/phpunit/phpunit
php artisan analyse <url_to_analyse>