Popularity
4.5
Growing
Activity
0.0
Declining
432
11
37

Description

Project scanner for detect unused composer dependencies

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

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

Programming language: PHP
License: MIT License
Latest version: v2.1.1

unused-scanner alternatives and similar libraries

Based on the "Static Analysis" category.
Alternatively, view unused-scanner alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of unused-scanner or a related project?

Add another 'Static Analysis' Library

README

Project scanner for detect unused composer dependencies

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](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](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:

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

[Demo screenshot](unused.png)

Licence

This project uses the MIT licence.


*Note that all licence references and agreements mentioned in the unused-scanner README section above are relevant to that project's source code only.