PHPStan Plugin to collect method-calls for further processing

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Forks: 1


0.1.0 2023-10-08 15:02 UTC

This package is auto-updated.

Last update: 2024-04-09 00:52:59 UTC


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


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.


Install via composer

composer require --dev stella-maris/callmap


Run via PHPStan

./vendor/bin/phpstan analyse -c vendor/stella-maris/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

The Objects contain these attributes:

  • callingClass
  • callingMethod
  • calledClass
  • calledMethod