PHPackages                             imanghafoori/php-imports-analyzer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. imanghafoori/php-imports-analyzer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

imanghafoori/php-imports-analyzer
=================================

A command line tool to scan for extra or wrong use statements in composer based apps.

v1.1.0(1y ago)21233.2k↓40.3%119MITPHPPHP &gt;=7.1.3

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/imanghafoori1/php-imports-analyzer)[ Packagist](https://packagist.org/packages/imanghafoori/php-imports-analyzer)[ Docs](https://github.com/imanghafoori1/php-imports-analyzer)[ RSS](/packages/imanghafoori-php-imports-analyzer/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (6)Versions (9)Used By (19)

PHP Imports Analyzer
====================

[](#php-imports-analyzer)

A command line utility designed to scan your composer-based PHP applications and identify unnecessary or incorrect use statements. This tool is especially beneficial for examining your open-source packages, ensuring they adhere to optimal coding standards.

### Install:

[](#install)

```
composer require imanghafoori/php-imports-analyzer --dev

```

Alternatively, you have the option to install it globally:

```
composer global require imanghafoori/php-imports-analyzer
```

### Usage:

[](#usage)

```
./vendor/bin/check_imports

```

Navigate to your project's root directory and run the following command:

```
check_imports

```

[![image](https://private-user-images.githubusercontent.com/6961695/289392535-7c68c4bd-ceb8-4c6e-be42-8539ad83d40a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5MjE5NzMsIm5iZiI6MTc4MjkyMTY3MywicGF0aCI6Ii82OTYxNjk1LzI4OTM5MjUzNS03Y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1cmU9YmQ5NWM4YTM0ZTg2MWRjNGNiNmVjZGE2ZmExNzcwZDk0NDEzZTU1ZGFjN2M4NDQzODBlODE1ZDRiZGQ3MTlmNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.ujhRFm0dnkrEsgPyP1KxkVs5dAQSYpi0FVHK6rmdHKA)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance42

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~117 days

Total

8

Last Release

466d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.0.3PHP &gt;=7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6961695?v=4)[Iman](/maintainers/imanghafoori1)[@imanghafoori1](https://github.com/imanghafoori1)

---

Top Contributors

[![imanghafoori1](https://avatars.githubusercontent.com/u/6961695?v=4)](https://github.com/imanghafoori1 "imanghafoori1 (16 commits)")[![alikhosravidev](https://avatars.githubusercontent.com/u/49164621?v=4)](https://github.com/alikhosravidev "alikhosravidev (1 commits)")[![HPWebdeveloper](https://avatars.githubusercontent.com/u/16323354?v=4)](https://github.com/HPWebdeveloper "HPWebdeveloper (1 commits)")

---

Tags

ci-cdphp-import-analyzer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imanghafoori-php-imports-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/imanghafoori-php-imports-analyzer/health.svg)](https://phpackages.com/packages/imanghafoori-php-imports-analyzer)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

190438.1k36](/packages/brianhenryie-strauss)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[testo/testo

A lightweight PHP testing framework.

1959.3k55](/packages/testo-testo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
