定制 insolita/unused-scanner 二次开发

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

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

insolita/unused-scanner

最新稳定版本:2.4.0

Composer 安装命令:

composer require insolita/unused-scanner

包简介

Detect unused composer dependencies

README 文档

README

unused-scanner

Versions

Use 1.3.x@dev versions for projects with php 5.6, 7.0

Use 2.x versions for projects with php >= 7.1

ChangeLog

see CHANGELOG.md

Installation

composer global require insolita/unused-scanner

Ensure that your ~/.composer/vendor/bin directory declared in $PATH

echo $PATH

if not - you should add it in ~/.bashrc or ~/.profile

Update

composer global update

Usage

prepare configuration file, see scanner_config.example.php

put it in project root (or other place)

run composer dumpautoload in your project directory

run unused_scanner /path/to/configuration/file/scanner_config.php

since 1.1 you can run it without argument, if scanner_config.php existed in current working directory, it will be used by default

For auto-testing:

Add --silent option for skip progress output and return exit code = 16, when unused packages detected

run unused_scanner --silent /path/to/configuration/file/scanner_config.php

Docker:

https://github.com/juanmrad/docker-unused-scanner

Demo screenshot

Licence

This project uses the MIT licence.

统计信息

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

GitHub 信息

  • Stars: 429
  • Watchers: 10
  • Forks: 39
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2018-04-07