PHPackages                             idm/laravel-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. idm/laravel-html-validator

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

idm/laravel-html-validator
==========================

Laravel package with service to validate HTML

1.0.0(4y ago)014PHPPHP &gt;=7.2

Since Sep 21Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

LARAVEL HTML VALIDATOR
======================

[](#laravel-html-validator)

version: 1.0.0

Description:
------------

[](#description)

Library for laravel to validate HTML by URL.

Install:
--------

[](#install)

```
composer req idm/laravel-html-validator

```

Usage:
------

[](#usage)

In your PHP-class (controller / service) just:

**1. Use library** (at the top in usage stage)

```
use IDM\LaravelHtmlValidator\Services\HtmlValidator;

```

**2. Init it**

```
$htmlValidator = new HtmlValidator;

```

**3. Use it**

Set the URL of page, which you want to validate:

```
$htmlValidator->setUrl($url);

```

Get link to validator:

```
$results = $htmlValidator->getLink();

```

Get validation results (array):

```
$results = $htmlValidator->validate();

```

Results:

```
[
  'isValid' => ..,  // true / false,
  'erros' => ..,    // number of errors
  'warnings' => .., // number of warnings
  'link' => ..,     // link to validator
  'html' => ..,     // html response from validator
]

```

Config:
-------

[](#config)

To publish library config to your project run:

```
php artisan vendor:publish

```

And select at list: **IDM\\LaravelHtmlValidator\\ServiceProvider**

Options in config:

```
[
  // Base link to validator service
  'validator_url' => 'https://validator.w3.org/unicorn/check',

  // Validator task (used in making full link to validator)
  'validator_task' => 'conformance',

  // Count number of warnings or not
  'ignore_warnings' => true,

  // Return in results HTML response from validator
  'return_html' => true
]

```

Requirements:
-------------

[](#requirements)

- PHP
- CURL
- Laravel

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1747d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46865067?v=4)[3aDooR](/maintainers/3adooR)[@3adooR](https://github.com/3adooR)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)

PHPackages © 2026

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