https://github.com/gemorroj/htmlvalidator
port PEAR package Services_W3C_HTMLValidator
https://github.com/gemorroj/htmlvalidator
htmlvalidator pear w3c-validator
Last synced: 9 months ago
JSON representation
port PEAR package Services_W3C_HTMLValidator
- Host: GitHub
- URL: https://github.com/gemorroj/htmlvalidator
- Owner: Gemorroj
- License: lgpl-3.0
- Created: 2014-04-23T10:13:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T20:28:49.000Z (10 months ago)
- Last Synced: 2025-03-24T05:03:37.193Z (9 months ago)
- Topics: htmlvalidator, pear, w3c-validator
- Language: PHP
- Size: 53.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Port PEAR package [HTMLValidator](http://pear.php.net/package/Services_W3C_HTMLValidator)
[](https://github.com/Gemorroj/HTMLValidator/actions?query=workflow%3A%22Continuous+Integration%22)
#### Rewritten to use the new API https://validator.w3.org/docs/api.html
### Requirements:
- PHP >= 8.0.2
### Installation:
```bash
composer require gemorroj/htmlvalidator
```
### Example:
```php
validateFragment(' ');
$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());
```