PHP code example of eldadfux / w3c-validator
1. Go to this page and download the library: Download eldadfux/w3c-validator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eldadfux / w3c-validator example snippets
// Create a new validator object
$validate = new W3CValidator('http://www.walla.co.il');
var_dump($validate->isValid()); /* output: bool(false) */
var_dump($validate->getErrorsCount()); /* output: int(463) */
var_dump($validate->getWarningsCount()); /* output: int(372) */