From 07b8e87ec1303d1cf6e153ddbd410631ff3071eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Thu, 17 Jul 2025 10:28:53 +0200 Subject: [PATCH] Add more details about the extension installation process --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ef59906..5abe2d8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,16 @@ This repository provides a PHPStan extension that can be used in both GLPI and G To install this PHPStan extension, run the `composer require --dev glpi-project/phpstan-glpi`. +To make this extension automatically enabled by PHPStan, you can also install the `phpstan/extension-installer` library, +otherwise you will need to add it in you PHPStan configuration file in the `includes` section: +```neon +includes: + - vendor/glpi-project/phpstan-glpi/rules.neon +``` +See https://phpstan.org/user-guide/extension-library#installing-extensions for more information. + +## Configuration + The GLPI version should be detected automatically, but you can specify it in your PHPStan configuration: ```yaml parameters: