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

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

eldadfux/w3c-validator
======================

PHP class for validating web documents with W3C validation API

v1.0.0(11y ago)93343[1 issues](https://github.com/eldadfux/w3c-validator/issues)MITPHP

Since Aug 17Pushed 9y ago2 watchersCompare

[ Source](https://github.com/eldadfux/w3c-validator)[ Packagist](https://packagist.org/packages/eldadfux/w3c-validator)[ RSS](/packages/eldadfux-w3c-validator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

W3C Validator [![Build Status](https://camo.githubusercontent.com/20d3146957922aa60145272529e63bc69efebaa118cea923f89c4781852cb94c/68747470733a2f2f7472617669732d63692e6f72672f656c6461646675782f7733632d76616c696461746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/eldadfux/w3c-validator)
===============================================================================================================================================================================================================================================================================================================

[](#w3c-validator-)

PHP wrapper class for validating web documents with W3C validation API

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

[](#installation)

Install using composer:

```
composer require 'eldadfux/w3c-validator:1.0.0'
```

Usage
-----

[](#usage)

Example:

```
include_once '../src/W3CValidator.php';

// 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) */
```

Limits
------

[](#limits)

Please notice that the W3C API is limited according to their abuse policy.

More information can be found here:

Contributing
------------

[](#contributing)

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

### Versioning

[](#versioning)

For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Utopia PHP Framework will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:

`..`

For more information on SemVer, please visit .

Requirements
------------

[](#requirements)

PHP 5.3+

We recommend using the latest PHP version whenever possible.

Author
------

[](#author)

**Eldad Fux**

-
-

License
-------

[](#license)

W3C Validator class is licensed under the MIT License - see the LICENSE file for details

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

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 ~232 days

Total

2

Last Release

4102d ago

Major Versions

v0.1.0 → v1.0.02015-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/023f08a9df59f81cc4a04b1cebd20f45ede5db53ef2f9e9ad3d75f4c69be66b8?d=identicon)[eldadfux](/maintainers/eldadfux)

---

Top Contributors

[![eldadfux](https://avatars.githubusercontent.com/u/1297371?v=4)](https://github.com/eldadfux "eldadfux (19 commits)")

---

Tags

phpw3c-validatorvalidationW3C

### Embed Badge

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

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

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k510.9M898](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k156.0M487](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

6.0k39.0M407](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k38.3M139](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

65141.2M263](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

9315.3M63](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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