Skip to content

mir

MIR

PHP Static Analyzer

Precision. Structure. Trust. █

mir v0.101.0 · 7d0fea3
  1. Install

    Add it as a Composer dev dependency. The prebuilt binary for your platform is downloaded and its checksum verified.

    composer require --dev miropen/mir-php
  2. Record a baseline

    Save today’s issues so only new ones are reported. Existing @psalm-* and @phpstan-* annotations are read as they are.

    vendor/bin/mir --set-baseline
  3. Gate every pull request

    Report new issues as inline annotations in CI. Exit code 1 fails the build.

    vendor/bin/mir --format github-actions
Terminal window
composer require --dev miropen/mir-php
vendor/bin/mir src/

Run it on your code.

No sign-up and no config file needed. Paste a snippet into the playground, or point the binary at your src/.

196
documented issues
7.4–8.6
PHP versions
5
output formats
MIT
license