imanghafoori/php-imports-analyzer
CLI tool to scan Composer-based PHP projects for unnecessary or incorrect use/import statements. Helps clean up imports and enforce coding standards across apps and open-source packages. Install as dev dependency or globally; run check_imports from your project root.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpmd/phpmd | 0.83 | PHPMD (PHP Mess Detector) scans PHP code for potential problems like overly complex methods, unused parameters, and suspicious code. It’s a CLI tool with configurable rulesets, Baseline support, and CI-friendly output formats to keep codebases clean. | 2,418 | 2,494 | 350 | 2M | 86 | 68.3 | 81.5 | BSD-3-Clause | 2 years ago | |
| sirbrillig/phpcs-import-detection | 0.82 | PHP_CodeSniffer plugin that detects unnecessary or missing PHP import (use) statements. Helps keep namespaces clean by flagging unused imports and suggesting fixes, improving code style consistency and reducing clutter in modern PHP projects. | 32 | — | 7 | — | 10 | 23.3 | 4.0 | NOASSERTION | 3 years ago | |
| nunomaduro/phpinsights | 0.81 | PHP Insights is a terminal tool to analyze PHP code quality, style, architecture, and complexity. Works out of the box with Laravel (artisan insights), Symfony, Yii, Magento, and more, with built-in checks for reliability and loose coupling. | 5,591 | 5,593 | 294 | 292K | 68 | 77.0 | 55.2 | MIT | 1 month ago | |
| maglnet/composer-require-checker | 0.81 | CLI tool that scans your PHP sources and composer.json to ensure every used class/function/extension comes from an explicit require. Detects “soft” (transitive) dependencies and missing PHP extensions so updates don’t break your package. | 992 | 999 | 78 | 321K | 32 | 47.8 | 57.8 | MIT | 2 weeks ago | |
| shipmonk/composer-dependency-analyser | 0.76 | Fast, zero-dependency tool to analyze Composer dependencies. Detects unused, shadowed, and misplaced packages/extensions by scanning your autoload paths. Works out of the box, highly configurable, and very performant (15k files in ~2s). Compatible with PHP 7.2–8.5. | 609 | 604 | 13 | 569K | 17 | 34.2 | 55.5 | MIT | 4 months ago | |
| icanhazstring/composer-unused | 0.72 | composer-unused detects and removes unused Composer dependencies in PHP/Laravel projects. It analyzes your codebase to find packages not referenced, reports what can be safely removed, and helps keep composer.json/lock lean and maintainable. | 1,676 | 1,678 | 57 | 220K | 10 | 42.2 | 39.4 | MIT | 2 months ago | |
| imanghafoori/php-token-analyzer | 0.71 | Analyzes PHP code tokens without execution—like reflection but pure PHP. Framework-agnostic, lightweight dependency extracted from Laravel-Microscope. Supports PHP 7.4+ with automated tests for accuracy. Extract class/method details, token types, and structure effortlessly. Ideal for static analysis... | 16 | 16 | 3 | 7K | 0 | 20.5 | 42.4 | — | 4 years ago |
How can I help you explore Laravel packages today?