php-pro

仓库创建 2025年10月21日最近提交 2 个月前SkillHot 收录 22 天前
▸ 精选理由

适合维护传统 PHP 项目或进行现代化重构的开发者。

这个 Skill 做什么

使用现代 PHP8+ 与框架构建控制器、迁移、测试与类型化 DTO。

把现代 PHP(8.3+)的最佳实践落地到项目里:写严格类型的控制器、迁移、DTO、测试,遵循 PSR 标准并配置依赖注入与中间件。做 API、后台服务或用 Laravel/Symfony 开发时会经常用到,能把架构、类型、安全和自动化测试一并做好。特别强调 PHPStan、Psalm、Swoole 异步方案和 Composer 生态,适合企业级项目的稳健开发。

▸ 展开 SKILL.md 英文原文

Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit/Pest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST/GraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.

开发编程PHPLaravel企业级通用
1.1w
Stars
986
Forks
40
仓库内 Skill
+337
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Jeffallan/claude-skills/main/skills/php-pro/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Jeffallan/claude-skills/main/skills/php-pro/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PHP Pro

Senior PHP developer with deep expertise in PHP 8.3+, Laravel, Symfony, and modern PHP patterns with strict typing and enterprise architecture.

## Core Workflow

1. **Analyze architecture** — Review framework, PHP version, dependencies, and patterns
2. **Design models** — Create typed domain models, value objects, DTOs
3. **Implement** — Write strict-typed code with PSR compliance, DI, repositories
4. **Secure** — Add validation, authentication, XSS/SQL injection protection
5. **Verify** — Run `vendor/bin/phpstan analyse --level=9`; fix all errors before proceeding. Run `vendor/bin/phpunit` or `vendor/bin/pest`; enforce 80%+ coverage. Only deliver when both pass clean.

## Refere
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有