analyze-php-source

Parse PHP/Laravel source and SQL dumps to summarize models, routes, and schemas.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Dinhpham04/DA-KLTN_HOTEL_MANAGEMENT --skill analyze-php-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-php-source
Source: https://github.com/Dinhpham04/DA-KLTN_HOTEL_MANAGEMENT/tree/main/.agents/skills/analyze-php-source
Command: npx skills add https://github.com/Dinhpham04/DA-KLTN_HOTEL_MANAGEMENT --skill analyze-php-source

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Developers face challenges understanding complex PHP/Laravel source code before migrating to newer frameworks, risking overlooked dependencies or logic errors.

Core Features & Use Cases

  • Code Structure Understanding: Analyze Models, Controllers, and Routes to map database tables, relationships, and API endpoints.
  • Schema Extraction: Read MySQL dump files to identify table schemas, indexes, and constraints.
  • Migration Planning: Generate comprehensive summaries to facilitate planning of code translation to NestJS/Prisma.
  • Use Case: A team planning to rewrite legacy PHP features into NestJS needs detailed insights into current code and DB schemas.

Quick Start

Input the PHP source directory and database dump to get a detailed analysis report.

Frequently Asked Questions about analyze-php-source

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze PHP Laravel source code for migration planning?

To analyze PHP Laravel source code for migration planning, input your source directory and database dump to extract models, controllers, routes, and schema relations. This generates a comprehensive summary mapping your current structure for translation into NestJS/Prisma.

What is the best way to map database tables and API endpoints from a legacy Laravel project?

Mapping database tables and API endpoints from a legacy Laravel project involves parsing PHP code and reading MySQL dump files. This process identifies table schemas, indexes, constraints, and controller routes to document your existing architecture.

Can I extract MySQL database schemas and constraints from a SQL dump for framework transition?

Yes, you can extract MySQL database schemas and constraints from a SQL dump. The analysis reads dump files to identify table structures, indexes, and relationship details, providing the necessary schema insights for a seamless framework transition.

Does this code analysis tool support planning a migration from Laravel to NestJS?

Yes, this code analysis tool supports planning a migration from Laravel to NestJS. It facilitates the framework transition by generating detailed structural summaries of your PHP source and database schema for effective NestJS and Prisma code translation.

What do I need to provide to analyze PHP source code and database schemas?

You need to provide the PHP source directory and a MySQL database dump file. Supplying these inputs allows the analysis to parse your Laravel application logic and read SQL schemas to output a comprehensive migration report.