定制 szemul/dependency-validator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

szemul/dependency-validator

最新稳定版本:0.0.1

Composer 安装命令:

composer require szemul/dependency-validator

包简介

Validates the composer dependencies of the given project

README 文档

README

Purpose

A simple tool what can be used to check if all the used packages are required explicitly in the composer.json file.

Reason

Trying to explain the problem by an example: There is a library called libraryA what uses another library libraryB, and there is an application called applicationA what uses libraryA and libraryB as well.

When a developer upgrades the libraryB package in libraryA via composer, he doesn't have to bump the major version of libraryA.

After libraryA is updated in applicationA the libraryB package will be updated as well automatically what can break the functionality of the application.

The solution

To avoid the situation explained above, all the used packages should be required explicitly in the application's composer.json, both libraryA and libraryB.

This tool helps to identify the packages to require.

Usage

Simply call vendor/bin/dependency-validator from the root of the project.

Config

A configuration can be defined in the root of the project. The filename has to be dependency-validator.json.

Can contain the following settings:

excludedNamespaces

Contains an array of strings with the namespaces what should be excluded from the validation process.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固