https://github.com/marabesi/php-import-checker
php-import-checker helps you know when a given class is imported but not used, providing a easy way to keep your code clean and organized.
https://github.com/marabesi/php-import-checker
checker extension import namespaces php php5 php7 use vscode
Last synced: 5 months ago
JSON representation
php-import-checker helps you know when a given class is imported but not used, providing a easy way to keep your code clean and organized.
- Host: GitHub
- URL: https://github.com/marabesi/php-import-checker
- Owner: marabesi
- License: mit
- Created: 2017-07-15T02:19:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-13T18:09:51.000Z (10 months ago)
- Last Synced: 2025-06-14T02:41:00.787Z (10 months ago)
- Topics: checker, extension, import, namespaces, php, php5, php7, use, vscode
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=marabesi.php-import-checker
- Size: 11.5 MB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# php-import-checker
[](https://www.codacy.com/gh/marabesi/php-import-checker/dashboard?utm_source=github.com&utm_medium=referral&utm_content=marabesi/php-import-checker&utm_campaign=Badge_Grade)
[](https://github.com/marabesi/php-import-checker/actions/workflows/nodejs.yml)
[](https://coveralls.io/github/marabesi/php-import-checker?branch=) 
php-import-checker helps you know when a given class is imported but not used, providing a easy way to keep your code clean and organized.
- [OpenVSX](https://open-vsx.org/extension/marabesi/php-import-checker)
- [Microsoft marketplace](https://marketplace.visualstudio.com/items?itemName=marabesi.php-import-checker)
## Features
- Highlight every unused class that is imported with `use`
- Change the color to fit your theme
- opt-in for latest changes and give feedback
## Settings
The settings described in this section go under the json option `php.import.highlight`,
a basic configuration that would change the highlight color, would be something
like:
```json
"php.import.highlight": {
"color": "#EDF791",
"use_next_version": false
"ignore_comments": true
}
```
|Option|Type|Description|
|------|----|-----------|
|color|String| Uses the RGB color defined in this option to highlight the unused imports - helpful to match the color with your preferred theme.|
|use_next_version|Boolean| Opt-in to the latest changes to the extension without breaking current behavior. Note: if you are using this option and find anything wrong, please open an issue.|
|ignore_comments|Boolean|If set to true, does not take into account commented code - this option only works if **use_next_version** is set to true|
## Requirements
Visual Code 1.6 +
## Demos
- Manually invoke the extension checker

- Change the color to the one you want to

## Publications
- [PHP import checker - VScode extension to support PHP developers](https://marabesi.com/php/2020/04/05/php-import-checker-vscode-extension.html)