unused-scanner

Detect unused composer dependencies

Github星跟蹤圖

Project scanner for detect unused composer dependencies

Build Status

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 /path/to/configuration/file/scanner_config.php --silent

Docker:

run docker run -v `pwd`:/app tico/unused-scanner /app/path/to/configuration/file/scanner_config.php

wait for result..

Demo screenshot

Licence

This project uses the MIT licence.

主要指標

概覽
名稱與所有者Insolita/unused-scanner
主編程語言PHP
編程語言PHP (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-04-07 11:37:01
推送於2024-08-13 05:48:18
最后一次提交2022-01-11 08:32:28
發布數25
最新版本名稱2.4.0 (發布於 )
第一版名稱1.0.0 (發布於 )
用户参与
星數430
關注者數10
派生數39
提交數111
已啟用問題?
問題數25
打開的問題數1
拉請求數9
打開的拉請求數1
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?