PHPackages                             pt1602/pt1602twig-ruleset - 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. [Templating &amp; Views](/categories/templating)
4. /
5. pt1602/pt1602twig-ruleset

ActiveLibrary[Templating &amp; Views](/categories/templating)

pt1602/pt1602twig-ruleset
=========================

A custom twigcs ruleset.

0.0.3(2y ago)07.9k↓25%MITPHP

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pt1602/PT1602TwigRuleset)[ Packagist](https://packagist.org/packages/pt1602/pt1602twig-ruleset)[ RSS](/packages/pt1602-pt1602twig-ruleset/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

[![Php](https://camo.githubusercontent.com/4d14a64c5e25601652d523c5b6354fa9735ffed4cdcee7ebcec69171bb18aba8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2d626c75653f6c6f676f3d706870266c6f676f436f6c6f723d666666)](https://sass-lang.com/)[![Maintenance](https://camo.githubusercontent.com/27e64f1921cdc160bdbda7138686f9c0867ca688664c5303cc1b718c54cf655a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d626c75652e737667)](https://github.com/pt1602/PT1602TwigRuleset/graphs/commit-activity)[![github forks](https://camo.githubusercontent.com/9dcfa5f490696cef91f14461a693d7792f6d0e53833bd007324ede64a691a548/68747470733a2f2f62616467656e2e6e65742f6769746875622f666f726b732f7074313630322f5054313630325477696752756c657365742f)](https://github.com/pt1602/PT1602TwigRuleset/network/)[![PRs Welcome](https://camo.githubusercontent.com/34333459bb5580902d0eb612e850249dc0418004e857ccd46c5b4aa87f7742f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d626c75652e737667)](http://makeapullrequest.com)[![github stars](https://camo.githubusercontent.com/d8ca38faae7f399ef265d13b309e81136d3864a1007fdf7c9ff6dac66b6d112d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7074313630322f5054313630325477696752756c657365742e7376673f7374796c653d736f6369616c266c6162656c3d53746172266d61784167653d32353932303030)](https://github.com/pt1602/PT1602TwigRuleset/stargazers/)

---

PT1602TwigRuleset
=================

[](#pt1602twigruleset)

This is a custom ruleset for [TwigCs](https://github.com/friendsoftwig/twigcs) which contains the [LowerCamelCaseVariable](https://github.com/Rareloop/twigcs-ruleset/blob/master/src/Rule/LowerCamelCaseVariable.php)from [Rareloop TwigCS Ruleset](https://github.com/Rareloop/twigcs-ruleset) and the following default checks:

- ForbiddenFunctions
- RegEngineRule
- TrailingSpace

---

Installation
------------

[](#installation)

```
composer require pt1602/pt1602twig-ruleset
```

Usage
-----

[](#usage)

```
twigcs path/to/views --ruleset \\PT1602\\PT1602TwigRuleset\\PT1602TwigRuleset
```

---

[![MIT license](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://lbesson.mit-license.org/)[![Open Source? Yes!](https://camo.githubusercontent.com/33dfddb9625820bb8277bc598e5aae0c2e4c3e8f5bd0c0c958ae28502e4250bc/68747470733a2f2f62616467656e2e6e65742f62616467652f4f70656e253230536f757263652532302533462f5965732532312f626c75653f69636f6e3d676974687562)](https://camo.githubusercontent.com/33dfddb9625820bb8277bc598e5aae0c2e4c3e8f5bd0c0c958ae28502e4250bc/68747470733a2f2f62616467656e2e6e65742f62616467652f4f70656e253230536f757263652532302533462f5965732532312f626c75653f69636f6e3d676974687562)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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 ~219 days

Total

3

Last Release

807d ago

### Community

Maintainers

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

---

Top Contributors

[![pt1602](https://avatars.githubusercontent.com/u/57329320?v=4)](https://github.com/pt1602 "pt1602 (8 commits)")

---

Tags

codestyletwigtwigcstwigrulesettwigcs

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pt1602-pt1602twig-ruleset/health.svg)

```
[![Health](https://phpackages.com/badges/pt1602-pt1602twig-ruleset/health.svg)](https://phpackages.com/packages/pt1602-pt1602twig-ruleset)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/packages/twig-intl-extra)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)[twig/markdown-extra

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)

PHPackages © 2026

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