https://github.com/phpdepend/callmap
PHPStan plugin to create a callmap file
https://github.com/phpdepend/callmap
Last synced: 5 months ago
JSON representation
PHPStan plugin to create a callmap file
- Host: GitHub
- URL: https://github.com/phpdepend/callmap
- Owner: phpdepend
- License: other
- Created: 2024-10-04T11:06:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-06T19:05:18.000Z (over 1 year ago)
- Last Synced: 2025-09-28T04:42:51.667Z (9 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CallMap
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
```bash
composer require --dev phpdepend/callmap
```
## Usage
Run via [PHPStan](https://phpstan.org)
```bash
./vendor/bin/phpstan analyse -c vendor/phpdepend/callmap/callmap.neon
```
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.