PHPackages                             kubawerlos/html-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. kubawerlos/html-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

kubawerlos/html-validator
=========================

Simple PHP library for HTML validation against https://checker.html5.org

v1.0.4(8y ago)14.8k—4.4%1MITPHPPHP &gt;=5.6

Since May 14Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (6)Used By (1)

Kuba Werłos / HTML validator
============================

[](#kuba-werłos--html-validator)

[![Latest Stable Version](https://camo.githubusercontent.com/ba172d6e4551857c9d129cc80250d687d2ece0803b9e183ea3b4785c58139b92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7562617765726c6f732f68746d6c2d76616c696461746f722e737667)](https://packagist.org/packages/kubawerlos/html-validator)[![PHP Version](https://camo.githubusercontent.com/4cbdbfeca62402b9ca3d48503f2bf66fc9809569bcd6de47196d39fecff71e72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e737667)](https://php.net)[![License](https://camo.githubusercontent.com/538b63d17e77f22426a1ae15108a0b61998e5d4293097f1d3b3607ed53dda3da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b7562617765726c6f732f68746d6c2d76616c696461746f722e737667)](https://packagist.org/packages/kubawerlos/html-validator)[![Build Status](https://camo.githubusercontent.com/b4c1a422f386728b532bbdc537ac7e4f7cb4d1b3a5d7af698375bde7856456b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b7562617765726c6f732f68746d6c2d76616c696461746f722f6d61737465722e737667)](https://travis-ci.org/kubawerlos/html-validator)

Simple PHP library for HTML validation against

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

[](#installation)

```
    composer require --dev kubawerlos/html-validator
```

Usage
-----

[](#usage)

```
    use KubaWerlos\HtmlValidator\Validator;

    assertEmpty(Validator::validate(file_get_contents('index.html')));
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~116 days

Total

5

Last Release

3236d ago

PHP version history (2 changes)v1.0PHP &gt;=5.3

v1.0.2PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/43e5f3c381362868a775f822f2f0bd6d32d77d0226a2d2716e63c65311923ff5?d=identicon)[kubawerlos](/maintainers/kubawerlos)

---

Top Contributors

[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (7 commits)")

---

Tags

htmlphpvalidation

### Embed Badge

![Health badge](/badges/kubawerlos-html-validator/health.svg)

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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