PHPackages                             indentno/laravel-linter - 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. indentno/laravel-linter

ActiveLibrary[Testing &amp; Quality](/categories/testing)

indentno/laravel-linter
=======================

Linting for your laravel project

0.6.6(1y ago)0904[6 issues](https://github.com/indentno/laravel-linter/issues)MITPHPPHP &gt;=8.1

Since Mar 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/indentno/laravel-linter)[ Packagist](https://packagist.org/packages/indentno/laravel-linter)[ RSS](/packages/indentno-laravel-linter/feed)WikiDiscussions develop Synced 1mo ago

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

laravel-linter
==============

[](#laravel-linter)

> Linting for your laravel project.

[![Build Status](https://camo.githubusercontent.com/ec252d6e3d0628e2bfe1d5de09a8c519ccbfc6cee5bb98311747b45b3d3e742f/68747470733a2f2f7472617669732d63692e636f6d2f696e64656e746e6f2f6c61726176656c2d6c696e7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/indentno/laravel-linter)[![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](http://makeapullrequest.com)[![psr-2](https://camo.githubusercontent.com/04699a17f5b5387c484c2306e1726816deef2864816472296c82ce4c7a88e394/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d5053525f322d626c75652e737667)](http://www.php-fig.org/psr/psr-2/)

A laravel linter based on the [tlint](https://github.com/tighten/tlint) package from the folks over at Tighten.

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

[](#installation)

Install the package as a dev dependency:

```
composer require indentno/laravel-linter --dev
```

Create a config (`tlint.json`), at the root of your repository, with the following contents:

```
{
  "preset": "Indent\\LaravelLinter\\Presets\\IndentPreset",
  "excluded": [
    "tests/",
    "database/"
  ]
}
```

Usage
-----

[](#usage)

Run the linter with all linters in the preset:

```
./vendor/bin/tlint
```

Run the linter against a single file or directory:

```
./vendor/bin/tlint lint app/Http/Controllers/PageController.php
./vendor/bin/tlint lint app
```

Lint the project with a single linter:

```
./vendor/bin/tlint --only="NoCompact"
```

Configuration
-------------

[](#configuration)

The `tlint.json` config supports three different config keys.

### Preset

[](#preset)

The "preset" defines which preset that should be used for linting the project. A preset is basicly just a set of linters, or rules, that the project should adhere to.

### Excluded

[](#excluded)

"excluded" is an array of paths that should be excluded from the linting process.

### Disabled

[](#disabled)

The "disabled" key can be used to disable a set of linters from being run in your project.

```
{
  "preset": "Indent\\LaravelLinter\\Presets\\IndentPreset",
  "disabled": [
      "NoCompact",
      "UseConfigOverEnv"
  ],
  "excluded": [
    "tests/",
    "database/"
  ]
}
```

Rules
-----

[](#rules)

An overview of rules that needs further explanation.

### ValidRouteStructure

[](#validroutestructure)

Routes should be structured the way we prefer.

**Examples**

```
Route::get('articles', [ArticleController::class, 'index'])->name('article.index');

Route::patch('page/{id}', [PageController::class, 'update'])
    ->name('admin.page.update')
    ->middleware(CanUpdatePage::class);
```

License
-------

[](#license)

MIT © [Indent](https://indent.no/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~73 days

Recently: every ~121 days

Total

17

Last Release

727d ago

PHP version history (3 changes)0.1.0PHP &gt;=7.3

0.6.0PHP &gt;=8.0

0.6.3PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d9e549ce3a4c7fe0c64aa8664a21f8c97b7291c4ef62533ac578b44c5e3bae?d=identicon)[indentno](/maintainers/indentno)

---

Top Contributors

[![ventrec](https://avatars.githubusercontent.com/u/701788?v=4)](https://github.com/ventrec "ventrec (66 commits)")[![ecrmnn](https://avatars.githubusercontent.com/u/1481696?v=4)](https://github.com/ecrmnn "ecrmnn (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/indentno-laravel-linter/health.svg)

```
[![Health](https://phpackages.com/badges/indentno-laravel-linter/health.svg)](https://phpackages.com/packages/indentno-laravel-linter)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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