PHPackages                             antiphp/minusl - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. antiphp/minusl

AbandonedArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

antiphp/minusl
==============

PHP MinusL (-l) Cached syntax checker

1.0.0(8y ago)011MITPHPPHP &gt;=5.3.2 || 7.\*

Since May 17Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

AntiPhp MinusL (-l)
===================

[](#antiphp-minusl--l)

MinusL checks the syntax of PHP, XML, JSON and INI files, the result will be cached. Whether a file has changed or not is determined by a hash function (by default PHP's md5\_file) but you can use other functions (filemtime) or hash algorithms.

Syntax check for PHP files: `php -l`(that's where the name comes from)

Syntax check for XML files: `PHP's simplexml lib`

Syntax check for JSON files: `PHP's json_decode()`

Syntax check for INI files: `PHP's parse_ini_file()`

Composer.json
-------------

[](#composerjson)

Extend your composer.json like this:

```
{
	"require": {
		"php": ">=5.3.2",
		"antiphp/minusl": "dev-master"
	}
}

```

Tests
-----

[](#tests)

```
// run an update of your composer setup
php composer.phar update

// short syntax
php vendor/antiphp/minusl/bin/minusl.php run

// - or -

// extended syntax
php vendor/antiphp/minusl/bin/minusl.php --hash=md5 --cache-file=/path/to/your/project/tmp/minusl.json --auto-save-interval=80 run /path/to/your/project

```

Output
------

[](#output)

```
PHP MinusL (-l) Cached syntax checker by Christian Reinecke

/home/www/minusl
..E.............................................................................
........................................................

Error summary (1):
	[01] Errors parsing /home/www/minusl/latest/test.php

General summary:
	files.................... 221
	files ignored............ 85
	files checked............ 136
	files *.json............. 20
	files *.php.............. 101
	files *.xml.............. 15
	files valid.............. 1
	files valid from cache... 134
	files invalid............ 1
	saved time............... 10.01s

Fail.

```

Warning
-------

[](#warning)

Please keep in mind: This is my first git/composer/packagist project and this is just an alpha version. It is possible that there are a lot of changes coming soon.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

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

2920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97efcd0e17319d5af4659982b23f80aa229f284cc08c3f2e40efde99bbab86d2?d=identicon)[antiphp](/maintainers/antiphp)

---

Tags

checkvalidationlintvalidatesyntaxphplintsyntaxcheck

### Embed Badge

![Health badge](/badges/antiphp-minusl/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[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)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M30](/packages/wixel-gump)[neilime/php-css-lint

Powerful &amp; memory efficient CSS linter for PHP

131.8M3](/packages/neilime-php-css-lint)[inhere/php-validate

generic data validate, filter library of the php

26787.4k13](/packages/inhere-php-validate)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)

PHPackages © 2026

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