symfony-conventions

Enforce Symfony best practices for services, Doctrine ORM, Twig, forms, and dependency injection.

8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zb-ss/opencode-workflows --skill symfony-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: symfony-conventions
Source: https://github.com/zb-ss/opencode-workflows/tree/main/skill/symfony-conventions
Command: npx skills add https://github.com/zb-ss/opencode-workflows --skill symfony-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to implementing Symfony applications following established best practices, ensuring maintainable, scalable, and efficient code.

Core Features & Use Cases

  • Framework Adherence: Enforces the use of core Symfony components like Doctrine, Twig, DI, Messenger, Forms, Security, and Event Dispatcher.
  • Code Structure: Outlines a standard directory structure for controllers, entities, repositories, services, etc.
  • Best Practices: Demonstrates idiomatic usage for controllers, entities, services, forms, Twig templating, event subscribers, and asynchronous messaging.
  • Use Case: A new developer joining a Symfony project can use this Skill to quickly understand and apply the project's established coding standards and architectural patterns.

Quick Start

Follow the symfony-conventions skill to set up a new Symfony project adhering to best practices.

Frequently Asked Questions about symfony-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for structuring a Symfony web application?

Symfony best practices dictate a standard directory structure for controllers, entities, repositories, and services to ensure maintainable PHP applications. This structure organizes code logically and enforces idiomatic component usage.

How do I configure Doctrine ORM entities and repositories in Symfony?

Configuring Doctrine ORM in Symfony involves placing entities and repositories in standard directories and applying best practices for mapping and querying. This approach maintains scalable and efficient database interactions.

What is the best way to handle dependency injection and services in Symfony?

The best way to handle Symfony dependency injection is by defining services idiomatically and leveraging core components like the Event Dispatcher. This ensures robust, decoupled, and maintainable application architecture.

How do I use Twig templating and forms correctly in Symfony?

Using Twig templating and forms correctly in Symfony requires adhering to established best practices for rendering views and handling form submissions. This guarantees standardized, secure, and reusable UI components.

Can I use Symfony Messenger and Event Dispatcher for asynchronous messaging?

Yes, Symfony best practices fully support using Messenger and Event Dispatcher for asynchronous messaging and event handling. These components are enforced to build scalable, decoupled PHP applications.

Do I need prior PHP experience to apply these Symfony coding standards?

Yes, you need existing PHP knowledge to implement these Symfony coding standards effectively. This framework adherence is designed for developers building robust applications using standard Symfony components.