Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpcs Import Detection Laravel Package

sirbrillig/phpcs-import-detection

PHPCS sniffs that warn when classes/functions/constants are used without an explicit import or fully-qualified name, and flags unused imports. Helps catch namespace issues during refactors (note: PHP 8 tokenization bug/performance caveats).

View on GitHub
Deep Wiki
Context7
v1.3.3

Changelog

  • Add "static analysis" Composer keyword (#56)
  • PHP 8.2 | Fix deprecated embedded variables in text strings (#55)

Note that because of https://github.com/sirbrillig/phpcs-import-detection/issues/52 this sniff still does not support newer versions of PHPCS.

v1.3.2

Changelog

v1.3.1

Changelog

  • Allow whitespace and comments in group import namespace (#48)
  • Allow object typehints (#47)
v1.3.0

Changelog

  • Add php 8 support (#46)
  • Composer: update PHPCS Composer plugin dependency (#39)
  • Composer: PHPCS is a production dependency (#40)
v1.2.2

Changelog

  • Fix file global function detection (#34)
v1.2.1

Changelog

  • Fix parentheses in class definition (#31) (props @yoavf)
v1.2.0

Changelog

This is mostly a bug fix release, but it significantly upgrades the way in which scope is handled in the package, so I'm going with a minor release.

  • Add awareness of nested named functions (#30) (props @zanona for discovering this)
v1.1.4

Changelog

  • Detect symbol of kind abc\{def\ghi, klm\nop}. (#27, props @Hywan)
v1.1.3

Changelog

  • Move Predef check after symbol check (#26)
v1.1.2

Changelog

  • Support trailing commas in group imports #23
v1.1.1

Changelog

  • Add support for trait declaration #21 (thank you @Augustin82 !)
  • Simplify getImportNames using getImportedSymbolsFromImportStatement #22
v1.1.0

Changelog

  • Add option to ignore WordPress patterns #12
  • Add option to ignore globals in global namespace #19
  • Differentiate between namespace and class #20
v1.0.4

Changelog

  • Refactor imported symbol records #18
v1.0.3

Changelog

  • Treat Interfaces as classes #15
v1.0.2

Changelog

  • Separate symbol records by file #9
v1.0.1

Changelog

  • Do not ignore trait usage #6
v1.0.0

Initial Release!

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope