---
title: "php-modernization"
description: "PHP 8.x modernization patterns with type safety and PHPStan"
canonical: https://agentpluginsdirectory.com/plugins/php-modernization
last-updated: 2026-09-22
---

# php-modernization
PHP 8.x modernization patterns with type safety and PHPStan
- Slug: php-modernization
- Publisher: Netresearch DTT GmbH
- Repository: https://github.com/netresearch/php-modernization-skill
- Manifest: plugin.json
- Version: 1.23.4
- License: (MIT AND CC-BY-SA-4.0)
- Category (editorial): code-review
- Skills: 1 (php-modernization)
- MCP servers: 0
- Stars: 47
- Repository created: 2025-12-13
- Repository last pushed: 2026-09-20
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/php-modernization
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What php-modernization does, in the publisher's words

Expert patterns for modernizing PHP applications to PHP 8.x with type safety, PSR / PER-CS compliance, static-analysis tooling, and Symfony-grade architecture. The skill ships an agent contract: a small set of executable tools that emit machine-readable verification reports, archetype profiles, and fix-loop transcripts.

This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.

Supported platforms:

- Claude Code (Anthropic)
- Cursor
- GitHub Copilot
- Other skills-compatible AI agents
- Agent contract: a Python verifier (verify_php_project.py), orchestrator (modernize_loop.py), and cheap profiler (introspect.py). stable structured output (JSON with schema_version 1.0.0, SARIF 2.1.0, or JUnit XML), archetype detection, and machine-readable agent_actions[] recommendations downstream agents can act on without re-reading the prose references.
- Hard guardrails: five binding refusal cases enforced in SKILL.md (no readonly on Doctrine entities, no Rector without --dry-run, baseline shrink-not-delete, no blanket final on mock targets, no editing generated files).

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/netresearch/php-modernization-skill/HEAD/README.md

## Skills

- php-modernization: Use when modernizing PHP code: PHP 8.1-8.5 features, PSR/PHP-FIG/PER-CS compliance, PHPStan/Rector/PHP-CS-Fixer/PHPat tooling, DTOs/enums/readonly/property hooks, type safety. Triggers: PHP modernization, type safety, PHPStan, Rector, PHP-CS-Fixer, enum, DTO, readonly, strict_types, property hooks,…

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
