migrate-php-to-nestjs

Convert PHP/Laravel backend components into structured NestJS modules.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill facilitates the conversion of legacy PHP/Laravel backend code into modern, maintainable NestJS modules, ensuring consistent behavior while improving code quality and performance.

Core Features & Use Cases

  • Code Migration: Transform PHP controllers, models, and business logic into NestJS controllers, services, and repositories.
  • Refactoring & Optimization: Refactor outdated PHP code into clean TypeScript with type safety, dependency injection, and best practices.
  • Use Case: Developers migrating a Laravel project to NestJS for better scalability and maintainability can use this Skill to automatically generate aligned modules, reducing manual effort and errors.

Quick Start

Input the PHP source code and relevant route definitions, then specify the target features for conversion to generate NestJS modules ready for integration.

Frequently Asked Questions about migrate-php-to-nestjs

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

FAQPage Schema
How do I migrate PHP Laravel controllers and models to NestJS?

You can convert PHP Laravel controllers and models to NestJS by inputting the source code and route definitions. The tool transforms them into structured NestJS controllers, services, and repositories with strict type safety and dependency injection for improved maintainability.

What is the best way to refactor legacy PHP backend code into TypeScript?

Refactoring legacy PHP backend code into TypeScript is handled by mapping PHP components to NestJS modules. This approach applies strict type safety, enforces dependency injection, and restructures APIs to align with modern backend standards while preserving consistent application behavior.

Can I use this to improve API performance and scalability when moving from Laravel to NestJS?

Yes, you can improve API performance and scalability when moving from Laravel to NestJS. The tool re-structures APIs and refactors business logic into optimized NestJS modules designed specifically for scalable microservices and better maintainability.

What do I need to provide to convert my PHP codebase to a NestJS backend?

To convert your PHP codebase to a NestJS backend, you need to provide the PHP source code and relevant route definitions. Specifying target features for conversion then generates structured NestJS modules ready for integration into your application.

Does the migration to NestJS maintain the original PHP application behavior?

Yes, the migration to NestJS maintains the original PHP application behavior. The conversion process transforms legacy backend code into modern TypeScript modules while ensuring consistent application behavior and simultaneously improving code quality and performance.