NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1380 most downloaded on Packagist
Show unused packages by scanning your code
Latest stable
0.9.8
Last release 22 days ago
31 Oct 2026
Release timing varies
gaps range from 8 days to 1.3 years
Nearly every release is documented
notes for 48 of 50 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
51 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
chore(ci): build the phar without dev dependencies by @kasparovabi in https://github.com/composer-unused/composer-unused/pull/751
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.7...0.9.8
composer(deps-dev): bump the dependencies group with 10 updates by @dependabot[bot] in https://github.com/composer-unused/composer-unused/pull/731
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.6...0.9.7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
github-actions(deps): bump the dependencies group across 1 directory with 3 updates by @dependabot[bot] in https://github.com/composer-unused/composer
SymfonyConfigurationSet by @ToshY in https://github.com/composer-unused/composer-unused/pull/702shivammathur/setup-php action by @OskarStark in https://github.com/composer-unused/composer-unused/pull/727Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.5...0.9.6
chore: Use 8.1 for build and phar validation by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/699
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.4...0.9.5
Remove extra dev files from vendor by @dmitryuk in https://github.com/composer-unused/composer-unused/pull/690
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.3...0.9.4
github-actions(deps): bump shivammathur/setup-php from 2.30.0 to 2.32.0 in the dependencies group by @dependabot in https://github.com/composer-unused
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.2...0.9.3
feat: Allow __root__ as default package name by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/671
__root__ as default package name by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/671Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.1...0.9.2
__root__ as default package name by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/671Add support for phpstan/phpdoc-parser v2 by @WyriHaximus in https://github.com/composer-unused/composer-unused/pull/670
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.9.0...0.9.1
chore(deps): require composer-unused/symbol-parser v0.2.2 by @simPod in https://github.com/composer-unused/composer-unused/pull/605
debug:provided-symbols command by @llaville in https://github.com/composer-unused/composer-unused/pull/626Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.11...0.9.0
debug:provided-symbols command by @llaville in https://github.com/composer-unused/composer-unused/pull/626Improve user experience when adding additional files by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/552
$name must not be accessed before initialization by @MarcinGladkowski in https://github.com/composer-unused/composer-unused/pull/562Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.10...0.8.11
$name must not be accessed before initialization" by @VincentLanglet in https://github.com/composer-unused/composer-unused/pull/562Improve user experience when running composer-unused with composer v1 by @MarcinGladkowski in https://github.com/composer-unused/composer-unused/pull/
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.9...0.8.10
Add ability to define source/vendor dir outside composer.json by @MarcinGladkowski in https://github.com/composer-unused/composer-unused/pull/522
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.8...0.8.9
Pass NameResolver to SymbolNameParser by @eliashaeussler in https://github.com/composer-unused/composer-unused/pull/460
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.7...0.8.8
Use correct version in CLI by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/453
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.6...0.8.7
Junit formatter by @reinfi in https://github.com/composer-unused/composer-unused/pull/440
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.5...0.8.6
Readd progress bar by @MarcinGladkowski in https://github.com/composer-unused/composer-unused/pull/427
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.4...0.8.5
Add JsonFormatter with test by @TomasVotruba in https://github.com/composer-unused/composer-unused/pull/398
--ignore-exit-code is used by @pascalheidmann in https://github.com/composer-unused/composer-unused/pull/396Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.3...0.8.4
--ignore-exit-code is used by @pascalheidmann in https://github.com/composer-unused/composer-unused/pull/396Add missing use statement by @OskarStark in https://github.com/composer-unused/composer-unused/pull/374
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.2...0.8.3
With 0.8.2 we improved the performance of the tool quite a bit. So the overall experience should be be better. In preparation to get the composer-unus
With 0.8.2 we improved the performance of the tool quite a bit. So the overall experience should be be better. In preparation to get the composer-unused-plugin to work properly. We prefixed the sources inside the .phar file.
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.1...0.8.2
With 0.8 release we introduced some regressions into the tool. This release should fix most of them.
With 0.8 release we introduced some regressions into the tool. This release should fix most of them.
composer-unused will now annotate errors in your pull requests for unused or zombie packages--output-format option is now available and can be set to default or github (new styles coming in the future)composer.json was moved into composer-unused.php (see https://github.com/composer-unused/composer-unused#configuration)Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.8.0...0.8.1
--output-format option
default and githubgithub can be used to annotate PRCiDetector to change output format according to the current ci environmentsymfony/dependency-injection to leverage autowiringcomposer-unused.php)Lexer\Emulative to use the current php version instead of latest oneis_dir() check from LocalRepository to avoid crashing file_get_contentsbox-project/box versioncomposer.json does not exist in given pathFilter was marked as unused again after being already usedIgnored section againcomposer-unused/symbol-parser to 0.1.7Version 0.8 marks a full rewrite of how composer-unused is scanning for unused packages and its integration into composer. There a new features that w
Version 0.8 marks a full rewrite of how composer-unused is scanning for unused packages and its integration into composer. There a new features that were rewritten and added again also some features got removed as they need a stable base to integrated again.
composer-unused itself is no longer a composer-plugin. This functionality was moved to composer-unused/composer-unused-plugin. If you want to use it as a plugin, you only need to install the plugin itself.
Other than that composer-unused is now working as a CLI tool. You can execute it from anywhere passing a --composer-json as option to scan the given file, or like the previous behavior execute it beside the composer.json you want to scan.
required-by output after scan by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/260suggested-by flag for console output by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/261Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.7.8...0.8.0
bin/composer-unused --versioncomposer-json which can be used to parse external projects.
This will default to the current working directory.composer.json is not readablebin/composer-unused to be used as standalone binarylibrary instead of composer-plugincomposer-plugin (will be supported using composer-unused/composer-unused-plugin)7.3github-actions(deps): bump shivammathur/setup-php from 2.15.0 to 2.16.0 by @dependabot in https://github.com/composer-unused/composer-unused/pull/241
suggested-by flag for console output by @icanhazstring in https://github.com/composer-unused/composer-unused/pull/261Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.7.x...0.8.0-RC1
Allow symfony/finder v6 by @simPod in https://github.com/composer-unused/composer-unused/pull/257
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.7.11...0.7.12
This reverts changes done with 0.7.10. As it turned out, removing composer/composer is not that simple. The dependency to it will be removed in later
This reverts changes done with 0.7.10.
As it turned out, removing composer/composer is not that simple.
The dependency to it will be removed in later phase for 0.8 until that, 0.7 will stay as is.
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.7.10...0.7.11
Nothing published for this version
Nothing published for this version
composer(deps-dev): update phpstan/phpstan requirement from ^0.12.93 to ^0.12.94 by @dependabot in https://github.com/composer-unused/composer-unused/
Full Changelog: https://github.com/composer-unused/composer-unused/compare/0.7.7...0.7.8
Added support for psr/log v2 and 3 #200 (thanks to @simPod)
Droppped support for composer v1
This release should fix issue with old and new github key format
Added an InstanceofStrategy which detects usages in instanceof expressions #100 Thanks to @localheinz
InstanceofStrategy which detects usages in instanceof expressions #100 Thanks to @localheinzFixed an issue where ext-ds classes were not recognized as used #88
Added workflow to verify integrity of build phar file
phar filebin/composer-unusedcomposer/composer into root requirements as its required to run bin/composer-unusedAdded phpspec/prophecy-phpunit to remove deprecations warnings of prophecy() with phpunit/phpunit:^9.0
phpspec/prophecy-phpunit to remove deprecations warnings of prophecy() with phpunit/phpunit:^9.00 if there are not packages to scan #78Core extension was checked as ext-core instead of php #79Added --no-progress to suppress progress bar for CI
--no-progress to suppress progress bar for CIbin/composer-unused was unable to detect vendor/autoload.php when run as direct depdendencyAdd scoped phar support and release asset.
Add scoped phar support and release asset.
phar supportbin/composer-unused as another entry pointcomposer/composer into root requirements as its needed to run bin/composer-unusedThis release will add support to scan for unused php extensions like ext-json
This release will add support to scan for unused php extensions like ext-json
Fixed some leftover references on zendframework/zend-servicemanager which caused a bug in runtime. Also remove shorthand options on the command for ex
Fixed some leftover references on zendframework/zend-servicemanager which caused a bug in runtime.
Also remove shorthand options on the command for excludeDir and excludePackage
Zend\ServiceManager in configuration files-d and -p as they could be already in useThis release will remove the dependency on zendframework/zend-servicemanager and will use our own customer psr/container-interface implementation.
This release will remove the dependency on zendframework/zend-servicemanager and will use our own customer psr/container-interface implementation.
Further some minor bugs were removed and the README.md as well as the CHANGELOG.md got some care taken of.
psr/container-interface implementation as a replacement for zendframework/zend-servicemanager--excludeDir|-d and --excludePackage|-p)Bugfix release to support typo3 composer packages #47 Thanks to @tomasnorre
Bugfix release to support typo3 composer packages #47 Thanks to @tomasnorre
Bugfix release to support yii2 composer packages #44 Thanks to @moltam
Fixed issue where composer-unused-dump was created even when not in debug mode #41
Fixed:
Fixed issue where qualified namespaces where not recognized when called from global namespace. This caused some false-positives (e.g. for symfony-bund
Fixed issue where qualified namespaces where not recognized when called from global namespace. This caused some false-positives (e.g. for symfony-bundles)
This bugfix release adds support for symfony-bundle type in composer.json
This bugfix release adds support for symfony-bundle type in composer.json
It is possible that a package defines a valid namespace and an empty one. This caused the usage analysis to break.
It is possible that a package defines a valid namespace and an empty one. This caused the usage analysis to break.
{
"autoload": {
"psr-4": {
"": "src/",
"A\\": "src/"
}
}
}
Fixed an issue where a package could provide an empty as well as a valid namespace
{
"autoload": {
"psr-4": {
"": "src/",
"A\\": "src/"
}
}
}
This release will change the behavior of the plugin.
This release will change the behavior of the plugin.
Changed:
ext- packages (might be changed in the future #33)Added:
--ignore-exit-codeThis release contains a lot of features, improvements and some bugfixes removing again some false-positives.
This release contains a lot of features, improvements and some bugfixes removing again some false-positives.
Fixed:
Namespace\Foobar::class was not recognized as usage #29Added:
library #25 composer-schema#typeunused if:
Namespace\Foobar::class was not recognized as usage #29library #25 composer-schema#typeunused if:
Little bugfix to improve error handling on a certain area. This will make sure that the debug output should be created.
Little bugfix to improve error handling on a certain area. This will make sure that the debug output should be created.
This will be improved further in the next release.
This release should address some false-positives while scanning your project. Also new cli parameters are here for some kind of control about the scan
This release should address some false-positives while scanning your project. Also new cli parameters are here for some kind of control about the scan.
Fixed:
autoload-dev provided a needed namespaceChanged:
Change the way how the plugin searched for usages
Previously it used only autoload and autoload-dev directives of the projects own composer.json.
This was changed so that now every file matching *.php beside the composer.json will be scanned.
With the exception that vendor is always excluded
Added:
--excludeDir|-xd to add additional folders to exclude from scan--excludePackage|-xp to add a package to ignore during scanThis release adds an error handler to create debug outputs.
This release adds an error handler to create debug outputs.
Added:
$ composer unused -vvv to generate an error dump..gitattributes for clean installFixed:
-vvv to enable debug mode and create a dump fileImproved:
Bugfix release to properly handle different autoload directives.
Bugfix release to properly handle different autoload directives.
The parsing should now work with the following directives:
Thanks to @finagin for solving this issue.
This marks the initial release of composer-unused
This marks the initial release of composer-unused
One column per quarter.