PHPackages                             nish/phpstan-echo-html-rule - 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. nish/phpstan-echo-html-rule

Abandoned → [nish/phpstan-safestring-rule](/?search=nish%2Fphpstan-safestring-rule)Library[Testing &amp; Quality](/categories/testing)

nish/phpstan-echo-html-rule
===========================

htmlspecialchars checker for PHPStan

v0.1.3(6y ago)112MITPHPPHP ~7.1CI failing

Since Dec 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nishphp/phpstan-echo-html-rule)[ Packagist](https://packagist.org/packages/nish/phpstan-echo-html-rule)[ Docs](https://github.com/nishimura/phpstan-echo-html-rule)[ RSS](/packages/nish-phpstan-echo-html-rule/feed)WikiDiscussions master Synced 6d ago

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

PHPStan Echo Html Rule Extension
================================

[](#phpstan-echo-html-rule-extension)

This package is a PHPStan extension for checking whether htmlspecialchars is called from a pure PHP template.

Install
-------

[](#install)

```
composer require --dev nish/phpstan-echo-html-rule

```

How to use
----------

[](#how-to-use)

Add to `phpstan.neon`

```
includes:
  - vendor/nish/phpstan-echo-html-rule/rules.neon
```

If your `composer.json` is:

```
    "autoload": {
        "psr-4": { "App\\": "src" },
        "files": [
            "src/functions.php"
        ]
    },
```

Value Object class `src/ProductDto.php`:

```
