PHPackages                             sanmai/linter - 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. sanmai/linter

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

sanmai/linter
=============

PHP Linter

v0.2.1(2y ago)14301Apache-2.0PHPPHP &gt;=7.4

Since Sep 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sanmai/linter)[ Packagist](https://packagist.org/packages/sanmai/linter)[ RSS](/packages/sanmai-linter/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (1)

[![Coverage Status](https://camo.githubusercontent.com/e0f6310b5ae919cd6803122eb7ce3783bc0ca0a4d5de3d5ad7515916c47a5136/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f73616e6d61692f6c696e7465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/sanmai/linter?branch=master)

Simple PHP source code linter with zero dependencies
====================================================

[](#simple-php-source-code-linter-with-zero-dependencies)

This is a very bare (really just 20 lines of code, comments included) yet very thoroughly tested (100% [MSI](https://medium.com/@maks_rafalko/infection-mutation-testing-framework-c9ccf02eefd1)) programmatic source code linter. Give it a piece of source code from a file or as a string, and it will tell you if this is a valid PHP or not. But do not forget to include the opening `
