Validate links from a given website.
composer require bepsvpt/website-links-validator
<?php
$result = Bepsvpt\WebsiteLinksValidator\Validator::validate('https://www.google.com/', $config = []);
Or you can execute the validator from terminal, the result will save to result.json at current directory
php validate.php
Use -h argument to show the usage.
name | description | default value |
---|---|---|
deep | how deep it should validate | 3 |
timeout | the http timeout seconds | 10.0 |
Note: The testing need a web server on localhost:8000 to complete the testing, the easiest way is using php built-in web server
php -S localhost:8000 -t ./tests/public
After service a web server, using phpunit to run the testing
phpunit
Laravel Security Header is licensed under The MIT License (MIT).