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(4y ago)01MITPHPPHP &gt;=5.6.0,&lt;8.0.0

Since Aug 15Pushed 4y 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 1w 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

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

1463d 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

[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

3039.0k](/packages/code-distortion-adapt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[lion/bundle

Lion-framework configuration and initialization package

132.4k5](/packages/lion-bundle)

PHPackages © 2026

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