PHPackages                             smarty/smarty-lint - 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. smarty/smarty-lint

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

smarty/smarty-lint
==================

SmartyLint is a PHP tool that helps you find issues in your Smarty template files. It's designed to assist you in writing cleaner and more consistent Smarty templates

v0.3.1(2mo ago)71.5k5[1 issues](https://github.com/umakantp/SmartyLint/issues)[1 PRs](https://github.com/umakantp/SmartyLint/pulls)BSD-3-ClausePHPPHP &gt;=8.1CI passing

Since Apr 22Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/umakantp/SmartyLint)[ Packagist](https://packagist.org/packages/smarty/smarty-lint)[ Docs](https://github.com/umakantp/SmartyLint)[ RSS](/packages/smarty-smarty-lint/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)DependenciesVersions (3)Used By (0)

SmartyLint
==========

[](#smartylint)

About
-----

[](#about)

SmartyLint is a PHP program that finds problems in Smarty files. It is tool that can be used for helping yourself for writing clean Smarty template files.

Requirements
------------

[](#requirements)

SmartyLint requires PHP version 5.2.4 or greater.

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

[](#how-to-use)

Download SmartyLint from github and start using.

```
git clone git://github.com/umakantp/SmartyLint.git
cd SmartyLint
git checkout v0.2.0
php smartyl -h

```

See our documentation at  for more information.

Smarty conventions
------------------

[](#smarty-conventions)

If you start using SmartyLint, it would force you to follow certain standards. Conventions for Smarty files are:-

- Should have one empty line at the bottom.
- Should not have more than 1 empty line at the bottom
- You should write file doc comment at the top in Java Doc format which contains short file description and all the variables used.
- There should be no TODO's and FixMe's in the code.
- Never use HTML comments. You should use Smarty comments {\*\*} instead.
- No whitespace / empty spaces at the end of each line.
- Can have max only 2 empty lines in the content (i.e. 3 new lines in a row).

More conventions would be added as an when code is added for it.

Contributing and Issues
-----------------------

[](#contributing-and-issues)

- If you want to report a bug reports open new issue on github.
- Have improvements? or Fixes? You can send in pull request for additional features or rules.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance88

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.1% 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

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73de8db1dd1370a977aa4f3940fcabba4e5bb486fb8639c040106f6222da8052?d=identicon)[wisskid](/maintainers/wisskid)

---

Top Contributors

[![bienvenuushindi](https://avatars.githubusercontent.com/u/26736582?v=4)](https://github.com/bienvenuushindi "bienvenuushindi (11 commits)")[![mercihabam](https://avatars.githubusercontent.com/u/68013195?v=4)](https://github.com/mercihabam "mercihabam (4 commits)")[![umakantp](https://avatars.githubusercontent.com/u/655027?v=4)](https://github.com/umakantp "umakantp (3 commits)")

---

Tags

phptemplatelintsmarty

### Embed Badge

![Health badge](/badges/smarty-smarty-lint/health.svg)

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

###  Alternatives

[monotek/minitpl

Miniature fully featured PHP template engine

125.5k1](/packages/monotek-minitpl)

PHPackages © 2026

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