Building Scanner from Source
For compile /src/ folder to single file /dist/scanner you need to do this:
-
Install composer requirements:
composer install -
Run command
composer build
Version the documentation
Create a documentation snapshot when publishing a scanner release:
cd docs
corepack yarn docusaurus docs:version 0.18.3
Replace 0.18.3 with the new scanner version. Commit the generated versioned_docs, versioned_sidebars, and versions.json files with the release changes. The current documentation remains available as Latest.
Technical details
The build process creates a PHAR (PHP Archive) file with a CLI-only stub. This approach avoids using Phar::webPhar() which performs strict signature verification. The CLI-only stub uses Phar::mapPhar() instead, which is more resilient to file corruption during download or transfer while still maintaining security for CLI usage.