PHPackages                             marius/phplint - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marius/phplint

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marius/phplint
==============

a php syntax check tool. Forked from Overtrue

0.3.4(8y ago)045MITPHPPHP &gt;=5.3.0

Since Jul 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/E36M3rius/phplint)[ Packagist](https://packagist.org/packages/marius/phplint)[ RSS](/packages/marius-phplint/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (23)Used By (0)

PHPLint
=======

[](#phplint)

[![StyleCI](https://camo.githubusercontent.com/683a48a29b3f29cddd9e8a74652df47892acc9ac024fccc4d18b42e7a789c8a8/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343132343331322f736869656c64)](https://styleci.io/repos/64124312)[![Build Status](https://camo.githubusercontent.com/3181e791374e67f4e61be0502693b3c27245d271482c177f5b289b3f49931554/68747470733a2f2f7472617669732d63692e6f72672f6f766572747275652f7068706c696e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/overtrue/phplint)[![Latest Stable Version](https://camo.githubusercontent.com/e7ed5b5a4fd167b480282697e68250f783866796a9e370e2dde5f06857123e38/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7068706c696e742f762f737461626c652e737667)](https://packagist.org/packages/overtrue/phplint) [![Total Downloads](https://camo.githubusercontent.com/1839802f14c5eb7eea755a1feb9045ccabdc4695e940ec49626a1889b92b422f/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7068706c696e742f646f776e6c6f6164732e737667)](https://packagist.org/packages/overtrue/phplint) [![Latest Unstable Version](https://camo.githubusercontent.com/336348f808ed0499971303389d3aac88ba3a4cccf9426f7fbdc769f296087cc4/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7068706c696e742f762f756e737461626c652e737667)](https://packagist.org/packages/overtrue/phplint) [![License](https://camo.githubusercontent.com/db0893bc1a5467b7ba747ab05da45325e0cbae7e07e8931d6cdda8cb4410ad90/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f7068706c696e742f6c6963656e73652e737667)](https://packagist.org/packages/overtrue/phplint)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ce10d2faf810935ddee55223e8bc6a2fa8bc091813c94045ad32e74062745106/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f7068706c696e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/phplint/?branch=master)

`phplint` is a tool that can speed up linting of php files by running several lint processes at once.

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

[](#installation)

```
$ composer require overtrue/phplint -vvv
```

Usage
-----

[](#usage)

### CLI

[](#cli)

```
Usage:
  phplint [options] [--]  ()...

Arguments:
  path                               Path to file or directory to lint.

Options:
      --exclude=EXCLUDE              Path to file or directory to exclude from linting (multiple values allowed)
      --extensions=EXTENSIONS        Check only files with selected extensions (default: php)
  -j, --jobs=JOBS                    Number of parraled jobs to run (default: 5)
  -c, --configuration=CONFIGURATION  Read configuration from config file (default: ./.phplint.yml).
      --no-configuration             Ignore default configuration file (default: ./.phplint.yml).
      --no-cache                     Ignore cached data.
  -h, --help                         Display this help message
  -q, --quiet                        Do not output any message
  -V, --version                      Display this application version
      --ansi                         Force ANSI output
      --no-ansi                      Disable ANSI output
  -n, --no-interaction               Do not ask any interactive question
  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
 Lint something
```

example:

```
$ ./vendor/bin/phplint ./ --exclude=vendor
```

You can also define configuration as a file `.phplint.yml`:

```
path: ./
jobs: 10
extensions:
  - php
exclude:
  - vendor
```

```
$ ./vendor/bin/phplint
```

By default, the command will read configuration from file `.phplint.yml` of path specified, you can custom the filename by option: `--configuration=FILENAME` or `-c=FILENAME`;

if you want do disabled any config file, you can add option `--no-configuration`.

### Program

[](#program)

```
use Overtrue\PHPLint\Linter;

$path = __DIR__ .'/app';
$exclude = ['vendor'];
$extensions = ['php'];

$linter = new Linter($path, $exclude, $extensions);

// get errors
$errors = $linter->lint();

//
// [
//    '/path/to/foo.php' => [
//          'error' => "unexpected '$key' (T_VARIABLE)",
//          'line' => 168,
//          'file' => '/path/to/foo.php',
//      ],
//    '/path/to/bar.php' => [
//          'error' => "unexpected 'class' (T_CLASS), expecting ',' or ';'",
//          'line' => 28,
//          'file' => '/path/to/bar.php',
//      ],
// ]
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.6% 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 ~21 days

Recently: every ~3 days

Total

21

Last Release

3151d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.5.9

0.2.5PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e34546dd5f540fde636dc87e68a65261dcb1f528fa58f2abe5c6fdfb3044637?d=identicon)[mariusiordache](/maintainers/mariusiordache)

---

Top Contributors

[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (53 commits)")[![mariusroyale](https://avatars.githubusercontent.com/u/15218908?v=4)](https://github.com/mariusroyale "mariusroyale (10 commits)")[![rmrhz](https://avatars.githubusercontent.com/u/4339240?v=4)](https://github.com/rmrhz "rmrhz (4 commits)")[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (3 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

---

Tags

checklintsyntaxphplint

### Embed Badge

![Health badge](/badges/marius-phplint/health.svg)

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

###  Alternatives

[overtrue/phplint

`phplint` is a tool that can speed up linting of php files by running several lint processes at once.

1.0k13.2M726](/packages/overtrue-phplint)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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