PHPackages                             micheh/w3c-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. micheh/w3c-validator

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

micheh/w3c-validator
====================

Validate HTML using the W3C HTML Validator API, including a checkstyle formatter for CI

0.1(12y ago)651.8k↓71.4%10[2 issues](https://github.com/micheh/w3c-validator/issues)BSD-3-ClausePHPPHP &gt;=5.3.3

Since Jan 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/micheh/w3c-validator)[ Packagist](https://packagist.org/packages/micheh/w3c-validator)[ RSS](/packages/micheh-w3c-validator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

W3C HTML Validator
==================

[](#w3c-html-validator)

This is a PHP library to validate HTML using the W3C HTML Validator API (non-official). It includes a checkstyle.xml formatter, which can be used in continuous integration systems.

Installation
------------

[](#installation)

Install with [composer](https://getcomposer.org/):

```
php composer.phar require-dev micheh/w3c-validator:0.*
```

Usage
-----

[](#usage)

Run the `w3c-validator.php` file in the `bin` directory and provide a url or path to the HTML file, which should be validated with the W3C Validator. If a url is provided, it will grab the html locally and submit it to the validator, which enables you to validate a local page as well. The script will exit with error code 0 if no errors or warnings are found, and exit code 1 if there is at least one error and/or warning.

To create a checkstyle.xml file with the violations, provide the `--report-checkstyle=` flag and set the path where the xml file should be saved.

```
php bin/w3c-validator.php --report-checkstyle=artifacts/checkstyle.xml http://localhost/project1
```

License
-------

[](#license)

The files in this archive are licensed under the BSD-3-Clause license. You can find a copy of this license in [LICENSE.txt](LICENSE.txt).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee309938d7863c2a8209e415617207328a023b3e23ecb2d4a64c928659f05ce4?d=identicon)[micheh](/maintainers/micheh)

---

Top Contributors

[![micheh](https://avatars.githubusercontent.com/u/1307920?v=4)](https://github.com/micheh "micheh (3 commits)")

### Embed Badge

![Health badge](/badges/micheh-w3c-validator/health.svg)

```
[![Health](https://phpackages.com/badges/micheh-w3c-validator/health.svg)](https://phpackages.com/packages/micheh-w3c-validator)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
