← スキル一覧に戻る

symfony-framework
by atournayre
Marketplace de plugins pour Claude Code : dev tools (Git, Symfony, PHPStan, API Platform), customization (hooks, output styles) et documentation interactive
⭐ 7🍴 0📅 2026年1月18日
SKILL.md
name: symfony-framework description: Comprehensive Symfony 6.4 development skill for web applications, APIs, and microservices. license: MIT version: 1.0.0
Symfony Framework Development Skill
Quick Start
# Full web app
symfony new project_name --version="6.4.*" --webapp
# API/Microservice
symfony new project_name --version="6.4.*"
# Without CLI
composer create-project symfony/skeleton:"6.4.*" project_name
Core Patterns
Controller
- Extend
AbstractController - Use attributes for routing:
#[Route('/path', name: 'route_name')] - Automatic entity parameter conversion
Services
- Autowiring by default
- Configure in
config/services.yaml
Doctrine
- Create entity:
php bin/console make:entity - Create migration:
php bin/console make:migration - Execute:
php bin/console doctrine:migrations:migrate
Forms
- Dedicated
FormTypeclasses - Handle in controller:
createForm(),handleRequest(),isSubmitted(),isValid()
Security
- Configure in
config/packages/security.yaml - Use Voters for authorization
Essential Commands
php bin/console cache:clear
php bin/console debug:router
php bin/console debug:container
php bin/console make:controller
php bin/console make:crud Product
Best Practices
- Use dependency injection
- Prefer composition over inheritance
- Keep controllers thin
- Use DTOs for API input/output
- Repository pattern for queries
- Voters for authorization
- Cache expensive operations
- TDD for critical features
Deployment Checklist
APP_ENV=prod,APP_DEBUG=0composer install --no-dev --optimize-autoloaderphp bin/console cache:clear --env=prodnpm run buildphp bin/console doctrine:migrations:migrate --env=prod
References
Pour détails avancés :
references/doctrine-advanced.md- ORM patternsreferences/security-detailed.md- Security configsreferences/api-platform.md- API Platformreferences/testing-complete.md- Testing strategiesreferences/performance-tuning.md- Optimization
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です