Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Symfony Apps?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-symfony-apps)
---
description: Build modular Symfony PHP applications using autowired services, Doctrine queries, Messenger queues, and voters
profile: standard
tags: php, symfony, backend, api
---
# Symfony apps
Use when implementing controllers, Doctrine repositories, async handlers, or security rules in Symfony.
## Architecture and DI
- Keep controllers thin with `#[MapRequestPayload]` DTO validation and inject typed services via constructor autowiring.
- Place reusable authorization checks inside Symfony Security `Voter` classes rather than duplicating role checks across controllers.
- Avoid N+1 loops in Twig or JSON serialization by writing explicit `QueryBuilder` joins or DQL projections in repository methods.
## Async and config
- Dispatch slow external calls (email, webhooks, exports) through Symfony Messenger with idempotent handlers and failure transports.
- Keep secrets in `.env.local` or Symfony Secrets vaults rather than committing credentials to tracked config files.
## Verify
Run `php bin/console lint:container`, `php bin/console doctrine:schema:validate`, and `php bin/phpunit` (or Pest/Stan checks).