@@ -79,11 +79,6 @@ It is not required to hold the source in the PHP SDK directory. It could be usef
7979
8080More extensive documentation can be found on the [ wiki] ( https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 " PHP wiki page ") .
8181
82- ` phpsdk_sbom --package <php-source-dir> <php-build-dir> <php-archive> [php-sbom-metadata] `
83- adds binary dependency licenses to a completed PHP archive. When metadata is supplied,
84- it also generates the archive's SBOM documents. Use ` phpsdk_sbom --export <php-archive> `
85- to create artifact-specific sidecars.
86-
8782## The old way
8883
8984- ` git clone https://github.com/php/php-sdk-binary-tools.git c:\php-sdk `
@@ -153,6 +148,22 @@ After a training case is implemented and put under `pgo/cases`, the work environ
153148
154149To skip a training case, add a file named ` inactive ` into the case folder.
155150
151+ # SBOM
152+
153+ The ` phpsdk_sbom ` tool can be used to add SBOM documents to a completed PHP
154+ Windows binary archive.
155+
156+ ` phpsdk_sbom --package <php-source-dir> <php-build-dir> <php-archive> <php-sbom-metadata> `
157+ merges the dependency SBOM documents found in ` <php-build-dir>\share\sbom ` with
158+ the libraries bundled in the PHP sources. The generated CycloneDX, SPDX and
159+ OpenVEX documents are added under ` extras\sbom ` in the archive. The metadata
160+ file is expected to contain the PHP license and the bundled library information.
161+
162+ ` phpsdk_sbom --export <php-archive> ` creates artifact-specific CycloneDX, SPDX
163+ and OpenVEX sidecars next to the archive. These sidecars include the archive
164+ file name, download location, build configuration and SHA-256 checksum. The
165+ OpenVEX sidecar is only created when the archive contains OpenVEX statements.
166+
156167# Debugging PHP
157168
158169This part covers debugging possibilities for the builds produced by the native VS compilers.
0 commit comments