Agent Skill: PHP 8.x modernization patterns. Use when upgrading to PHP 8.1/8.2/8.3, implementing type safety, or achieving PHPStan level 9+. By Netresearch.
/plugin marketplace add netresearch/claude-code-marketplace/plugin install netresearch-skills-bundle@netresearch-claude-code-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
LICENSEREADME.mdcomposer.jsonreferences/migration-strategies.mdreferences/php8-features.mdreferences/phpstan-compliance.mdreferences/symfony-patterns.mdreferences/type-safety.mdscripts/verify-php-project.shModernize PHP applications to PHP 8.x with type safety, Symfony patterns, and static analysis.
references/php8-features.md - PHP 8.0-8.4 featuresreferences/type-safety.md - Type system strategiesreferences/symfony-patterns.md - Modern Symfony architecturereferences/phpstan-compliance.md - Static analysis configurationreferences/migration-strategies.md - Version upgrade planningConstructor promotion (PHP 8.0+):
readonly class UserDTO {
public function __construct(
public string $name,
public string $email,
) {}
}
Typed arrays (PHPDoc generics):
/** @return array<int, User> */
public function getUsers(): array
declare(strict_types=1) in all files./scripts/verify-php-project.sh /path/to/project
Contributing: https://github.com/netresearch/php-modernization-skill