PHP Support in Maguyva: Long-Lived Web Apps Without Blind Edits
Relevant when a PHP codebase is still shipping revenue but nobody wants an agent freelancing through it.
Extensions
.php, .php3, .php4, .php5, +2 more
Free tier available. See plans →
Maguyva supports JavaScript with AST parsing and symbol extraction, helping AI agents work across Node services, browser code, scripts, and legacy modules without collapsing into string search.
A lot of AI code tooling quietly treats JavaScript as the messy state before “real” TypeScript. That misses how production repos actually look. JavaScript still owns build steps, plugin systems, browser code, task scripts, and long-lived service paths that nobody has budgeted to rewrite cleanly.
That makes JavaScript support less about pretty syntax and more about history. The danger is not parsing the file. The danger is editing a module or helper without understanding whether it belongs to CommonJS, ESM, browser code, or some older local pattern.
Maguyva covers .js, .mjs, and .cjs, normalizes member-prefixed calls, and supports JSX component heuristics in JavaScript codebases that blur frontend and backend boundaries. It also filters out a large amount of standard browser and Node runtime noise so repository-specific relationships remain visible.
That is useful in older or mixed repos where the same concept may exist in more than one file style and where exact naming is often inconsistent.
The practical workflow usually looks like this:
text_pattern_search for exact strings like module.exports, event names, or old config markers.intelligent_search when you need behavior-level discovery such as “legacy upload flow” or “where auth is checked in the browser bundle”.get_task_context when naming is inconsistent and you want a stitched summary before the agent edits anything.This page is for repos that still have meaningful JavaScript surface area, not for teams pretending the migration is already complete. If the current repo is mostly TypeScript, start with TypeScript. If the old web stack still bleeds into server-side templates or PHP, the PHP guide is the more relevant companion.
Best fit
Agent workflows
Engine details
Useful MCP entry points
text_pattern_search
Use it for exact strings like `module.exports`, event names, or legacy config markers before you widen the search.
intelligent_search
Use this when naming is inconsistent and you need to find a behavior like “file upload flow” rather than a symbol.
get_task_context
Useful when the repo has drifted and you need a stitched summary before touching a legacy path.
Related guides
Relevant when a PHP codebase is still shipping revenue but nobody wants an agent freelancing through it.
Extensions
.php, .php3, .php4, .php5, +2 more
Relevant when your repo mixes app code, libraries, API clients, tests, and config across multiple packages.
Extensions
.cts, .d.ts, .mts, .spec.ts, +3 more