Skip to content
Creates CycloneDX Software Bill-of-Materials (SBOM) from PHP Composer projects
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
src
tests
.gitignore
LICENSE
README.md Remove instructions for pre-release installation Dec 5, 2019
composer.json

README.md

Build Status Packagist Version License Website Group Discussion Twitter

CycloneDX PHP Composer Plugin

A plugin for PHP's Composer that generates Bill of Materials in CycloneDX format.

Usage

Requirements

The plugin supports PHP 5.5 and later.

Installation

composer require --dev cyclonedx/cyclonedx-php-composer

Options

After successful installation, the composer command make-bom is available.

$ composer make-bom -h
Usage:
  make-bom [options]

Options:
      --output-file=OUTPUT-FILE  Path to the output file (default is bom.xml)
      --exclude-dev              Exclude dev dependencies
      --exclude-plugins          Exclude composer plugins
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
      --no-cache                 Prevent use of the cache
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Generate a CycloneDX Bill of Materials

License

Permission to modify and redistribute is granted under the terms of the Apache 2.0 license. See the LICENSE file for the full license.

You can’t perform that action at this time.