PHP Command-Line Options

The following table describes the PHP-specific command-line options.

PHP Option Description

-php-source-root <path>

Specifies an absolute path to the project root directory. The relative path name first expands from the current directory. If the file is not found, then the path expands from the specified PHP source root directory.

Equivalent Property Name:
com.fortify.sca.PHPSourceRoot

-php-version <version>

Specifies the PHP version. The default version is 7.4. For a list of valid versions, see the Fortify Software System Requirements document.

Equivalent Property Name:
com.fortify.sca.PHPVersion

See Also

PHP Properties