Skip to content

v0.2.1 - PHP Language Support

Choose a tag to compare

@jgravelle jgravelle released this 02 Mar 01:27

What's New

PHP Language Support

jCodeMunch now indexes PHP codebases natively.

Supported constructs:

  • Functions, classes, methods
  • Interfaces, traits, enums (as type symbols)
  • Constants (const declarations)
  • Return type annotations
  • PHPDoc /** */ comment extraction
  • PHP 8 #[Attribute] decorator syntax

File extensions: .php

Tested against: PHPMailer (55 files, 512 symbols indexed)

Token Savings on PHP Codebases

Benchmarked against PHPMailer — a real-world library where PHPMailer.php alone is ~200KB:

Scenario Without MCP With MCP Savings
API discovery ~63,700 tokens ~3,162 tokens 95%
Fetch one method ~49,888 tokens ~1,575 tokens 97%
Full architecture ~70,414 tokens ~4,162 tokens 94%

Supported Languages

Python, JavaScript, TypeScript, Go, Rust, Java, PHP (new)