PHPackages                             iaroslav-khmel/project-map - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. iaroslav-khmel/project-map

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iaroslav-khmel/project-map
==========================

PHP project structure mapper for Laravel, Symfony and generic PHP projects.

v0.1.7(1mo ago)011↓50%MITPHPPHP ^8.2|^8.3|^8.4

Since Jun 23Pushed 1mo agoCompare

[ Source](https://github.com/DragonflyPhenom/project-map)[ Packagist](https://packagist.org/packages/iaroslav-khmel/project-map)[ RSS](/packages/iaroslav-khmel-project-map/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (6)Versions (9)Used By (0)

Project Map
===========

[](#project-map)

`iaroslav-khmel/project-map` is a Composer package and CLI tool that statically scans PHP projects and builds a first technical map: classes, methods, method calls, framework routes and models.

It is framework-agnostic by default and includes static MVP adapters for Laravel and Symfony. It never scans `vendor/` and does not execute the analysed application in generic mode.

Requirements
------------

[](#requirements)

- PHP `^8.2|^8.3|^8.4`
- Composer

Local Development Via Path Repository
-------------------------------------

[](#local-development-via-path-repository)

In the project where you want to test the package, add a path repository:

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../project-map",
      "options": {
        "symlink": true
      }
    }
  ]
}
```

Install it:

```
composer require --dev iaroslav-khmel/project-map:@dev
```

Run the scanner:

```
vendor/bin/project-map scan
```

CLI
---

[](#cli)

```
vendor/bin/project-map scan \
  --path=. \
  --output=storage/project-map \
  --format=json,dot,svg,html \
  --framework=auto \
  --graph=all \
  --max-depth=3 \
  --include-tests=false \
  --exclude=vendor,node_modules,storage,bootstrap/cache,var/cache,tests
```

Options:

- `--path` project path, defaults to current directory
- `--output` output directory, defaults to `.project-map`
- `--format` comma-separated formats: `json`, `dot`, `svg`, `html`, `mmd`
- `--framework` one of `auto`, `laravel`, `symfony`, `generic`
- `--graph` one of `classes`, `routes`, `models`, `all`
- `--max-depth` maximum method call depth from route entrypoints
- `--include-tests` include test files in the graph, defaults to `false`
- `--exclude` comma-separated directories to skip; `vendor` is always excluded

Output
------

[](#output)

The JSON graph payload is written to:

```
.project-map/project-map.json

```

The DOT graph is written to:

```
.project-map/project-map.dot

```

If Graphviz `dot` is available, the SVG graph is written to:

```
.project-map/project-map.svg

```

The HTML report embeds the SVG graph as the main project map and is written to:

```
.project-map/index.html

```

Mermaid remains available as an optional extra format: `.project-map/project-map.mmd`.

Current MVP
-----------

[](#current-mvp)

Generic PHP scanning includes namespaces, class-like declarations, inheritance, interfaces, traits, method signatures, visibility, parameters, return types, method calls, static calls and object creation. Dynamic calls that cannot be resolved are stored as `unknown_call` warnings.

Laravel support includes recursive AST parsing of `routes/`, route includes, route groups with prefix/middleware/name/controller context, `Route::get/post/put/patch/delete/options/any/match/resource/apiResource`, Eloquent models, table names, fillable/guarded/casts/hidden/appends, relations and best-effort migration fields.

Symfony support includes attribute routes and Doctrine entity attributes. YAML route parsing is reported as an MVP warning instead of failing.

Development
-----------

[](#development)

```
composer install
composer test
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6786c60ae0a187f8c9e99b41c4a4104abc5d78f6d432cc92db5871d88fee18f7?d=identicon)[DragonflyPhenom](/maintainers/DragonflyPhenom)

---

Top Contributors

[![DragonflyPhenom](https://avatars.githubusercontent.com/u/13859999?v=4)](https://github.com/DragonflyPhenom "DragonflyPhenom (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iaroslav-khmel-project-map/health.svg)

```
[![Health](https://phpackages.com/badges/iaroslav-khmel-project-map/health.svg)](https://phpackages.com/packages/iaroslav-khmel-project-map)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M353](/packages/psalm-plugin-laravel)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

192484.7k40](/packages/brianhenryie-strauss)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)[phauthentic/cognitive-code-analysis

5216.4k2](/packages/phauthentic-cognitive-code-analysis)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
