Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

bepsvpt-legacy/website-links-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Links Validator

Build Status codecov.io StyleCI

Validate links from a given website.

Table of Contents

Installation

composer require bepsvpt/website-links-validator

Usage

<?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.

Config

name description default value
deep how deep it should validate 3
timeout the http timeout seconds 10.0

Testing

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

License

Laravel Security Header is licensed under The MIT License (MIT).