golden hour
/opt/PHP-Antimalware-Scanner/docs/docs/extras
⬆️ Go Up
Upload
File/Folder
Size
Actions
_category_.json
42 B
Del
OK
build.md
602 B
Del
OK
programmatically.md
778 B
Del
OK
tests.md
323 B
Del
OK
Edit: build.md
--- sidebar_position: 3 --- # Build For compile `/src/` folder to single file `/dist/scanner` you need to do this: 1. Install composer requirements: ```shell composer install ``` 2. Run command ```shell composer build ``` ## 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.
Save