2017 © Pedro Peláez
 

library htmlvalidator

W3C HTML Validator service.

image

gemorroj/htmlvalidator

W3C HTML Validator service.

  • Monday, April 9, 2018
  • by Gemorroj
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,919 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Port PEAR package HTMLValidator

Continuous Integration, (*1)

Rewritten to use the new API https://validator.w3.org/docs/api.html

Requirements:

  • PHP >= 8.0.2

Installation:

composer require gemorroj/htmlvalidator

Example:

<?php
use HTMLValidator\HTMLValidator;

$validator = new HTMLValidator();
$result = $validator->validateFragment('<html lang="en"><body> </body></html>');
$result = $validator->validateFile('/path/to/file.html');
$result = $validator->validateUri('http://example.com');

var_dump($result->isValid());

print_r($result->getErrors());
print_r($result->getWarnings());

The Versions

09/04 2018

dev-master

9999999-dev

W3C HTML Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.6

 

The Development Requires

by Avatar Gemorroj

20/06 2017

1.1.0

1.1.0.0

W3C HTML Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.3

 

The Development Requires

by Avatar Gemorroj

14/01 2017

1.0.0

1.0.0.0

W3C HTML Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar Gemorroj