diff --git a/build/phpstan/README b/build/phpstan/README
index c64aa5a7559..9e3fb09e21e 100644
--- a/build/phpstan/README
+++ b/build/phpstan/README
@@ -1,19 +1,20 @@
-PHPStan
-
-https://phpstan.org
+PHPStan (https://phpstan.org)
+-----------------------------
PHPStan requires PHP >= 7.1
-Config File: phpstan.neon
+Config File is: ./phpstan.neon
-Install:
-cd git
-mkdir phpstan
+Install phpstan:
+cd git; mkdir phpstan
cd phpstan
composer require --dev phpstan/phpstan
-Execute:
-cd git/dolibarr
-mv htdocs/custom /tmp/
-php8.2 ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php --memory-limit 4G --error-format=table htdocs/commande/class
+Build report from CLI:
+cd git/dolibarr; mv htdocs/custom /tmp/
+php ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php --memory-limit 4G --error-format=table htdocs/commande/class
mv /tmp/custom htdocs
+
+Build HTML report from Cron:
+Example of line to add into a cron to generate a HTML report:
+0 1 5 * * cd /home/dolibarr/preview.dolibarr.org/dolibarr; chmod -R u+w /home/dolibarr/preview.dolibarr.org/dolibarr; git pull; /home/dolibarr/phpstan/vendor/bin/phpstan -v analyze -a build/phpstan/bootstrap.php --memory-limit 4G --error-format=github | awk ' BEGIN { print "Date "strftime("%Y-%m-%d")"
" } { print $0"
" } ' > /home/dolibarr/doxygen.dolibarr.org/phpstan/index.html