PHPackages                             nguyendotrung/laravel-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. [Testing &amp; Quality](/categories/testing)
4. /
5. nguyendotrung/laravel-lint

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

nguyendotrung/laravel-lint
==========================

This is a tool for checking a consistency and coding convention of Laravel project. Please contact me if you have any problem when using it.

2.0.0(5y ago)117proprietaryShell

Since Jun 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/NavaRose/laravel-lint)[ Packagist](https://packagist.org/packages/nguyendotrung/laravel-lint)[ RSS](/packages/nguyendotrung-laravel-lint/feed)WikiDiscussions main Synced 3w ago

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

AMV Lint
========

[](#amv-lint)

Check coding convention, coding consistency for your laravel project.

**Install**
-----------

[](#install)

Run follow command in root directory of your laravel project:
`composer require amv-hub/amv-lint --dev`

After package installed, run following command to initialize the package config:
`./vendor/amv-hub/amv-lint/init.sh --dev`

**Usage**
---------

[](#usage)

After package installed, to lint your project included **checking env variable**, **checking language translation file**s, check **coding consistency** and **coding convention** of **JavaScript**, **PHP**, please run following command:
`amv lint`

For checking individually for each feature, please provide a third parameter, included `env`, `lang`, `php`, `js`:
`amv lint env`
`amv lint lang`
`amv lint php`
`amv lint js`

By default, the checking execution will stop when first error occurs. Sometimes, you need the checking execution doesn't stop until the end. So, just provide `-g` flag for execution command. Notice: if you provide the individual feature for checking, please place `-g` flag just before the name of checking feature.
`amv lint -g`
`amv lint -g env`
`amv lint -g lang`
`amv lint -g php`
`amv lint -g js`

**Configurations**
------------------

[](#configurations)

The general configurations file is `.amv_lint.env`, which was placed is your project root folder. It contains various environment variable. These following features are the most important you should know.

### DEBUG\_MODE:

[](#debug_mode)

When you turn this variable to `true`, it will work same way when you turn `-g` flag in your checking command. But this variable will be ignored when you provide -g flag. For example, if you set this DEBUG\_MODE to false,

### CHECKING\_STANDARDS:

[](#checking_standards)

This is the list of PHP standards for checking execution. Standards are separated by a comma `,` and you can provide a following standards: `psr1`, `psr2`, `psr12`, `pear`.

### IS\_STAGED\_CHECKING:

[](#is_staged_checking)

If set it true, the checking execution will perform a check with the staged files (the files that you added it for commit). Otherwise, if you set this variable to false, these following folder will be checked:

- ENV variable checking: folders which represent in `ENV_USING_CHECKING_DIRS` variable.
- For PHP files checking: folders which represent in `PHP_CONVENTION_CHECKING_DIRS` variable.
- For JavaScript checking: folders which represent in `JS_CONVENTION_CHECKING_DIRS` variable.

These variable's value is string of one or many folders, separated by a comma `,`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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 ~0 days

Total

4

Last Release

1837d ago

Major Versions

0.0.3 → 2.0.02021-06-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d17f7a12d1460995b9fbb09334927fbaa096eb7aef49e52d48a5594d708a199?d=identicon)[NavaRose](/maintainers/NavaRose)

---

Top Contributors

[![trungnd38](https://avatars.githubusercontent.com/u/15769685?v=4)](https://github.com/trungnd38 "trungnd38 (59 commits)")[![nguyendotrung38](https://avatars.githubusercontent.com/u/85467380?v=4)](https://github.com/nguyendotrung38 "nguyendotrung38 (4 commits)")

---

Tags

coding-conventionslaravellaravel-package

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.2k](/packages/slevomat-coding-standard)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[fig-r/psr2r-sniffer

Code-Sniffer, Auto-Fixer and Tokenizer for PSR2-R

331.3M153](/packages/fig-r-psr2r-sniffer)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)[hyva-themes/hyva-coding-standard

A set of Hyvä specific PHP CodeSniffer rules extending the Magento Coding Standard

2927.5k](/packages/hyva-themes-hyva-coding-standard)

PHPackages © 2026

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