PHPackages                             mikulas/lattecs - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mikulas/lattecs

ActiveLibrary[CLI &amp; Console](/categories/cli)

mikulas/lattecs
===============

Coding standard validator for Latte templates

v0.3.1(11y ago)2292[1 issues](https://github.com/Mikulas/nette-lattecs/issues)MITPHP

Since May 2Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Mikulas/nette-lattecs)[ Packagist](https://packagist.org/packages/mikulas/lattecs)[ RSS](/packages/mikulas-lattecs/feed)WikiDiscussions master Synced 6d ago

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

LatteCS
=======

[](#lattecs)

[![Build Status](https://camo.githubusercontent.com/9d95c1eb14ffe05431e34a9e49695659d70ed156c49f6d6d0a07e434d88c07df/68747470733a2f2f7472617669732d63692e6f72672f4d696b756c61732f6e657474652d6c6174746563732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Mikulas/nette-lattecs)

Coding standard validator for [Latte](https://github.com/nette/latte).

Usage
-----

[](#usage)

```
composer require --dev mikulas/lattecs
php vendor/bin/lattecs app/
```

Example `config.neon` for skipping certain rules:

```
skip:
	- Mikulas.LatteCS.Rules.BlockAnnotation.TwoStars
```

```
php vendor/bin/lattecs --config config.neon app/
```

Current rule set
----------------

[](#current-rule-set)

- each block definition must have `{** *}` doc comment with properly formatted `@param` annotations
    - blocks closed on the same line are not forced to have annotations (such as the title or scripts blocks)
- forced block content indentation

Example
-------

[](#example)

```
➜  lattecs git:(master) ✗ php bin/lattecs tests/fixtures/
tests/fixtures/invalid_param.latte
  line 5: Invalid annotation '@param xoxo', expected '@param type $name'

tests/fixtures/invalid_param_dollar.latte
  line 5: Invalid annotation '@param string basePath', variable name must start with '$'

tests/fixtures/missing.latte
  line 3: Block #content is not properly annotated

tests/fixtures/missing_params.latte
  line 5: Block #content is annotated, but no @param was specified.

tests/fixtures/missing_star.latte
  line 5: Lattedoc does not start with two stars but it should

```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2014 Mikulas Dite

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Recently: every ~69 days

Total

7

Last Release

4120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/474f4dd92229f3cfd2c618004b250e2a96ca31f4114c2a0f9c8fb66c65ed7764?d=identicon)[Mikulas](/maintainers/Mikulas)

---

Top Contributors

[![Mikulas](https://avatars.githubusercontent.com/u/192200?v=4)](https://github.com/Mikulas "Mikulas (28 commits)")

---

Tags

consolevalidatornettetoolcslatteCoding Standardchecker

### Embed Badge

![Health badge](/badges/mikulas-lattecs/health.svg)

```
[![Health](https://phpackages.com/badges/mikulas-lattecs/health.svg)](https://phpackages.com/packages/mikulas-lattecs)
```

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[contributte/console

Best Symfony Console for Nette Framework

983.6M49](/packages/contributte-console)[kdyby/console

Symfony Console integration for Kdyby components

601.8M73](/packages/kdyby-console)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[contributte/console-extra

Nette-based console commands for latte, DIC, security, utils and many others

301.2M2](/packages/contributte-console-extra)

PHPackages © 2026

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