mteu/sbom-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mteu/sbom-parser

Composer 安装命令:

composer require mteu/sbom-parser

包简介

Type-safe parser for CycloneDX Software Bill of Materials (SBOM) JSON files

README 文档

README

CGL Tests Coverage Maintainability PHP Version Require

CycloneDX SBOM Parser for PHP

CycloneDX SBOM (Software Bill of Materials) parser for PHP 8.3+. Supports CycloneDX 1.4+ specifications including components, vulnerabilities, and metadata with full immutable entity design using Valinor for type mapping.

Note

The CycloneDX ecosystem provides an official PHP library (cyclonedx/cyclonedx-library) and a Composer plugin for generating SBOMs. These tools are designed to produce BOMs as part of your build pipeline — not for consuming them in application code.

This package aims to fill a different gap: Reading and inspecting existing SBOM files.

If your application needs to parse a CycloneDX SBOM and work with its data — querying components, checking vulnerabilities, reading metadata — you need a lightweight, read-only library with clean, type-safe objects. That is what this package aims to provide.

⚡️ Quick Start

Installation

Require the library in your project with Composer:

composer require mteu/sbom-parser

Usage

Instantiate mteu\SbomParser\Parser\CycloneDxParser, read in the SBOM file, and access the components directly:

use mteu\SbomParser\Parser\CycloneDxParser;

$parser = new CycloneDxParser();
$bom = $parser->parseFromFile('/path/to/sbom.json');

// Access components and vulnerabilities
$components = $bom->getAllComponents();
$vulnerabilities = $bom->vulnerabilities;

See detailed documentation for complete usage examples and API reference.

🤝 Contributing

Contributions are very welcome! Please have a look at the Contribution Guide. It lays out the workflow of submitting new features or bugfixes.

🔒 Security

Please refer to the security policy if you discover a security vulnerability in this extension. Be warned, though. I cannot afford bounty.

⭐ License

This extension is licensed under the GPL-3.0-or-later license.

💬 Support

For issues and feature requests, please use the GitHub issue tracker.

统计信息

  • 总下载量: 1.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-08-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固