Installation

November 29, 2025 ยท View on GitHub

  1. Requirements
  2. PHAR
  3. Docker
  4. Phive
  5. Composer

Requirements

VersionStatusRequirements
9.xActive developmentPHP >= 8.1
6.xEnd Of LifePHP >= 8.2
5.xEnd Of LifePHP >= 8.1
4.xEnd Of LifePHP >= 8.0
3.xEnd Of LifePHP >= 7.4

PHAR

The preferred method of installation is to use the PHPLint PHAR which can be downloaded from the most recent Github Release. This method ensures you will not have any dependency conflict issue.

IMPORTANT : Embedded with Composer dependencies that are PHP 8.2 compatible !

Docker

You can install phplint with Docker

docker pull overtrue/phplint:latest

Phive

You can install phplint globally with Phive

phive install overtrue/phplint --force-accept-unsigned

To upgrade global phplint use the following command:

phive update overtrue/phplint --force-accept-unsigned

You can also install phplint locally to your project with Phive and configuration file .phive/phars.xml

<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
    <phar name="overtrue/phplint" version="^9.7" copy="false" />
</phive>
phive install --force-accept-unsigned

Composer

You can install phplint with Composer

composer global require overtrue/phplint ^9.7

If you cannot install it because of a dependency conflict, or you prefer to install it for your project, we recommend you to take a look at bamarni/composer-bin-plugin. Example:

composer require --dev bamarni/composer-bin-plugin
composer bin phplint require --dev overtrue/phplint

vendor/bin/phplint