定制 phpdepend/callmap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

phpdepend/callmap

最新稳定版本:0.2.0

Composer 安装命令:

composer require --dev phpdepend/callmap

包简介

PHPStan Plugin to collect method-calls for further processing

README 文档

README

Map method and function calls to the methods or functions in which they happen.

Purpose

This allows to create a mapping file that can be used to generate an overview of which method is called where.

Whether that is to generate a graphical overview or to check which Namespace boundaries are crossed is a separate topic then.

The package itself is a plugin to pPHPStan.

Installation

Install via composer

composer require --dev phpdepend/callmap

Usage

Run via PHPStan

./vendor/bin/phpstan analyse -c vendor/phpdepend/callmap/callmap.neon <path/to/your/sources>

This will create a JSON containing an array of objects that can be used to create a map of method-calls. There will be one entry per call. If one method is called multiple times from a method, there will be one entry per single call.

The Objects contain these attributes:

  • callingClass
  • callingMethod
  • calledClass
  • calledMethod

The file callmap.json is the callmap file for this plugin.

统计信息

  • 总下载量: 44
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-10-04