meesterdev/package-parser
Composer 安装命令:
composer require meesterdev/package-parser
包简介
Parse composer/npm package locks into a list of packages with some basic information.
README 文档
README
Parses composer.json/composer.lock and package.json/package-lock.json files for retrieving information about licenses from those packages.
Packages can be skipped based on their license and will be added to a list of "failed packages" if no license information is available. No validity checks are done on the license itself (e.g. whether it appears on the SPDX License List).
Example
<?php use MeesterDev\PackageParser\Parsers\ParserFactory; $parser = ParserFactory::createForFilePath('composer.json'); $parser->ignoreLicenses(['proprietary', 'UNLICENSED']); $packages = $parser->parse(); var_dump($packages, $factory->skippedPackages, $factory->failedPackages); // probably a pretty long dump
统计信息
- 总下载量: 8.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-16