PHPackages                             leaseweb/lint-php - 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. [CLI &amp; Console](/categories/cli)
4. /
5. leaseweb/lint-php

AbandonedArchivedPackage[CLI &amp; Console](/categories/cli)

leaseweb/lint-php
=================

A command line tool to lint multiple PHP files

0.1.0(7y ago)08.6k1MITShell

Since Jul 16Pushed 7y ago9 watchersCompare

[ Source](https://github.com/LeaseWeb/lint-php)[ Packagist](https://packagist.org/packages/leaseweb/lint-php)[ RSS](/packages/leaseweb-lint-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

lint-php
========

[](#lint-php)

This package introduces a simple bash script that lints multiple PHP files at once.

Compatibility
-------------

[](#compatibility)

This tool should be compatible with any PHP Cli that provides lint check.

Usage
-----

[](#usage)

Simply provide a list of files and/or folders for the tool to validate.

```

$ bin/lint-php test/valid/foo.php test/valid/bar.php
PHP Lint, by Valdir Bruxel Junior and contributors

... 2/2

Validation finished (2 files, 2 valid, 0 errors, 0 skipped)

```

If you provide a folder, it will recursevilly lint all php files in that folder.

```
$ bin/lint-php test/valid
PHP Lint, by Valdir Bruxel Junior and contributors

.......... 3/3

Validation finished (10 files, 10 valid, 0 errors, 0 skipped)

```

If it encounters any errors, it will validate all files and output the errors it encountered in the end of the execution run.

```
$ bin/lint-php test/valid test/errors
PHP Lint, by Valdir Bruxel Junior and contributors

E... 4/4

Validation finished (4 files, 3 valid, 1 errors, 0 skipped)

There were 1 file(s) with syntax errors:

    1) test/error/with-error.php
       PHP Parse error:  syntax error, unexpected '=' in test/error/with-error.php on line 3
       Errors parsing test/error/with-error.php

```

If you provide a non-existent file to be validated, it will be skipped by the lint check.

```
bin/lint-php test/lorem-ipsum.php
PHP Lint, by Valdir Bruxel Junior and contributors

S 1/1

Validation finished (1 files, 0 valid, 0 errors, 1 skipped)

Skipped 1 file(s):

    1) test/lorem-ipsum.php

```

Todo
----

[](#todo)

- bin/lint-php --colors= ("yes", "no")
- bin/lint-php -h|--help
- bin/lint-php --ignore-folder folder
- bin/lint-php --stop-on-failure
- bin/lint-php --stop-on-skipped
- bin/lint-php -v|--verbose
- bin/lint-php --version

Credits
-------

[](#credits)

- PHPUnit because we totally ripped the output of PHPUnit to create this script

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e448b7dd5c01c0faf368dace8236789957686e52f381418247a6fb5887c93f4f?d=identicon)[nrocco](/maintainers/nrocco)

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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