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

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

amv-hub/amv-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.

3.1.1(4y ago)0385proprietaryShell

Since Jun 21Pushed 4y agoCompare

[ Source](https://github.com/amv-hub/amv-lint)[ Packagist](https://packagist.org/packages/amv-hub/amv-lint)[ RSS](/packages/amv-hub-amv-lint/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (17)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`

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

[](#usage)

#### Checking:

[](#checking)

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`

#### Individual Feature Checking:

[](#individual-feature-checking)

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`

#### Force to DEBUG MODE:

[](#force-to-debug-mode)

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`

#### Fixing common problem:

[](#fixing-common-problem)

AMV Lint use PHP\_CodeSniffer for checking coding convention of PHP files and use ESLint to checking for JavaScript files. So you can use all of their feature to perform the check. Two of them also provide the tool for fixing some of common problem. You can perform that fixing feature by following command:
`amv lint --fix`

Or fixing an individual feature by:
`amv lint php --fix`

**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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~9 days

Recently: every ~31 days

Total

16

Last Release

1650d ago

Major Versions

0.0.3 → 2.0.02021-06-21

2.0.0 → 3.0.02021-06-22

v2.x-dev → 3.0.12021-06-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/86276711?v=4)[amv-tech](/maintainers/amv-tech)[@amv-tech](https://github.com/amv-tech)

---

Top Contributors

[![trungnd38](https://avatars.githubusercontent.com/u/15769685?v=4)](https://github.com/trungnd38 "trungnd38 (75 commits)")[![nguyendotrung38](https://avatars.githubusercontent.com/u/85467380?v=4)](https://github.com/nguyendotrung38 "nguyendotrung38 (4 commits)")[![sangtruong-vn](https://avatars.githubusercontent.com/u/60636290?v=4)](https://github.com/sangtruong-vn "sangtruong-vn (1 commits)")

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

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

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)

PHPackages © 2026

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