feat(php): php projects support added

This commit is contained in:
Anatoliy Poloz
2026-06-22 08:12:55 +03:00
parent b95f457ab7
commit ed58bd043b
7 changed files with 2144 additions and 381 deletions

View File

@@ -15,7 +15,7 @@ This skill bundles a belief-map query engine and graph builders for architecture
* Architecture-layer and boundary-violation checks
* Naming-convention (invariant) checks
* Call-chain and data-flow tracing
* Cross-language analysis (Python, TypeScript, TSX)
* Cross-language analysis (Python, TypeScript, TSX, PHP)
* Infrastructure topology from Kustomize, Helm, and Terraform
---
@@ -71,7 +71,7 @@ All output is S-expression facts, one per line.
| `(entity-def cls <mod> <Name> <line>)` | Type/class definition |
| `(violation <src> <tgt> :src-layer :tgt-layer)` | Architecture violation |
`:lang` values: `py` (Python), `ts` (TypeScript), `tsx` (TSX).
`:lang` values: `py` (Python), `ts` (TypeScript), `tsx` (TSX), `php` (PHP).
---
@@ -79,7 +79,7 @@ All output is S-expression facts, one per line.
1. **Locate or build the map**: check for `.belief_map.sexp`; if absent, build it
```bash
pip3 install tree-sitter tree-sitter-typescript tree-sitter-python
pip3 install tree-sitter tree-sitter-typescript tree-sitter-python tree-sitter-php
python3 scripts/build_belief_map.py # incremental ~5s
python3 scripts/build_belief_map.py --full # full rebuild ~30s
```