From the source
Amazon's guide shows how to turn PHP-to-Java migration into a measurable, repeatable process using Kiro, an AI integrated development environment that pairs an agent with a codebase.
- The approach centers on a reusable engine: a shared methodology, a mechanical discovery scanner, and an eight-phase workflow that treats the original PHP application as the specification.
- The engine refuses to declare the Java port correct until a parity harness verifies it, and the post starts from an open repository so readers can run the engine themselves.
- Everything is packaged as skill files, versioned Markdown capability packages encoding the migration methodology and the discovery scanner workflow, so the same methodology runs in two ways.
- Kiro drives a migration step by step with explicit approval gates, letting developers review the discovery manifest, approve the rulebook, and sign off on each phase.
- AWS Transform, the AWS agentic AI service for large-scale migration and modernization, now integrates natively with Kiro and can run the same skill files agentically at portfolio scale.
- The scanner works in a single pass with no dependencies, applying three discovery strategies to source tokens and emitting one JSON manifest, with anything ambiguous routed to a review-flag queue for a human to resolve.