承接 tomasvotruba/class-leak 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomasvotruba/class-leak

最新稳定版本:2.1.1

Composer 安装命令:

composer require tomasvotruba/class-leak

包简介

Detect leaking classes

README 文档

README

Downloads total

Find leaking classes that you never use... and get rid of them.

Install

composer require tomasvotruba/class-leak --dev

Usage

Pass directories you want to check:

vendor/bin/class-leak check src

Make sure to exclude /tests directories, to keep reporting classes that are used in tests, but never used in the code-base.


Many types are excluded by default, as they're collected by framework magic, e.g. console command classes.


Exclude what you use

Do you want to skip classes of certain type?

vendor/bin/class-leak check src --skip-type="App\\Contract\\SomeInterface"

What if your classes do no implement any type?

vendor/bin/class-leak check src --skip-suffix="Controller"

Do you want to skip classes using a specific attribute?

vendor/bin/class-leak check src --skip-attribute="App\\Attribute\\AsController"

Happy coding!

统计信息

  • 总下载量: 1.43M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 132
  • 点击次数: 1
  • 依赖项目数: 54
  • 推荐数: 1

GitHub 信息

  • Stars: 132
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04