PHPackages                             symplify/phpstan-twig-rules - 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. symplify/phpstan-twig-rules

AbandonedArchivedPhpstan-extension[Testing &amp; Quality](/categories/testing)

symplify/phpstan-twig-rules
===========================

Rules for static analysis of TWIG templates and TWIG render() methods

10.0.2(4y ago)1513.4kMITPHPPHP &gt;=8.0

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/deprecated-packages/phpstan-twig-rules)[ Packagist](https://packagist.org/packages/symplify/phpstan-twig-rules)[ Fund](https://www.paypal.me/rectorphp)[ GitHub Sponsors](https://github.com/tomasvotruba)[ RSS](/packages/symplify-phpstan-twig-rules/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (12)Versions (21)Used By (0)

PHPStan Twig Rules
==================

[](#phpstan-twig-rules)

[![Downloads](https://camo.githubusercontent.com/104bac92a19191c4d85cee48f0d6f29afe077b250520400987a46f2468b1bea1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f7068707374616e2d747769672d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/phpstan-twig-rules/stats)

Rules for static analysis of TWIG templates and TWIG render() methods

- See [Rules Overview](docs/rules_overview.md)

Install
-------

[](#install)

```
composer require symplify/phpstan-twig-rules --dev
```

Usage
-----

[](#usage)

@todo

Report Issues
-------------

[](#report-issues)

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)

Contribute
----------

[](#contribute)

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~2 days

Total

20

Last Release

1668d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (47 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplify-phpstan-twig-rules/health.svg)

```
[![Health](https://phpackages.com/badges/symplify-phpstan-twig-rules/health.svg)](https://phpackages.com/packages/symplify-phpstan-twig-rules)
```

###  Alternatives

[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[savinmikhail/add_named_arguments_rector

Rector rule to add names to arguments for functions'/methods' calls

19100.7k5](/packages/savinmikhail-add-named-arguments-rector)

PHPackages © 2026

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