PHPackages                             irukasano/phpunit-htmlhint - 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. irukasano/phpunit-htmlhint

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

irukasano/phpunit-htmlhint
==========================

add assertion of phpunit with htmllint

v1.0.1(3y ago)01MITPHPPHP &gt;=5.6.0,&lt;8.0.0

Since Aug 15Pushed 3y agoCompare

[ Source](https://github.com/irukasano/phpunit-htmlhint)[ Packagist](https://packagist.org/packages/irukasano/phpunit-htmlhint)[ RSS](/packages/irukasano-phpunit-htmlhint/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

phpunit-htmlhint
================

[](#phpunit-htmlhint)

add phpunit assertion by htmlhint

install
-------

[](#install)

install this library,

```
$ composer require irukasano/phpunit-htmlhint
```

and also needs to install [htmlhint](https://htmlhint.com/docs/user-guide/getting-started)

```
$ sudo apt install nodejs npm
$ sudo npm install n -g
$ sudo n stable
$ sudo npm install htmlhint -g
```

usage
-----

[](#usage)

### cakephp3

[](#cakephp3)

in your testcase ( ex. tests/TestCase/PagesControllerTest.php ),

```
use PHPUnitHmtlhint\LintTestTrait;

class PagesControllerTest extends TestCase
{
    use IntegrationTestTrait;
    use LintTestTrait;

    public function test()
    {
        $this->get('/');
        $html = $this->_response->getBody();
        $this->assertHtmlhintOk($html);
    }
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1373d ago

### Community

Maintainers

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

---

Top Contributors

[![irukasano](https://avatars.githubusercontent.com/u/8053188?v=4)](https://github.com/irukasano "irukasano (10 commits)")

---

Tags

htmlhintphpunitphpunithtmllint

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/irukasano-phpunit-htmlhint/health.svg)

```
[![Health](https://phpackages.com/badges/irukasano-phpunit-htmlhint/health.svg)](https://phpackages.com/packages/irukasano-phpunit-htmlhint)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78337.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69617.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

57026.3M456](/packages/dg-bypass-finals)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19454.9M1.4k](/packages/phpspec-prophecy-phpunit)

PHPackages © 2026

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