Skip to content

v3.5.1 — First-class PHP in the quality harness

Choose a tag to compare

@manufosela manufosela released this 14 Jun 10:09
7aa5006

Patch — PHP joins the harness (KJC-TSK-0563)

PHP becomes a first-class kj harden language, alongside JS/TS, Python and Go:

  • Detection: detectStackRoots recognises composer.jsonphp (aligned with detectProjectStack).
  • Native hooks: vendor/bin/phpstan analyse (lint), php-cs-fixer fix --dry-run (format), vendor/bin/phpunit (test) — no npm/Node imposed at commit time.
  • Config: phpstan.neon (level 6) seeded as a kj:managed block.
  • CI: a setup-php Quality workflow (composer + phpstan + phpunit).
  • kj check inherits the PHP config drift checks automatically.

The PHP RAG AST grammar (tree-sitter) is intentionally out of scope.

Builds on v3.5.0's quality harness (kj harden + kj check). Clean install verified (verify-pack). Full notes in CHANGELOG.md.