symfony

Symfony PHP framework with reusable components. Use for PHP applications.

7 stars

Best use case

symfony is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Symfony PHP framework with reusable components. Use for PHP applications.

Teams using symfony should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/symfony/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/frameworks/symfony/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/symfony/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How symfony Compares

Feature / AgentsymfonyStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Symfony PHP framework with reusable components. Use for PHP applications.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Symfony

Symfony v7.1 (2025) is the bedrock of modern PHP (Drupal, Laravel components). It emphasizes **Attributes** (Annotations) and strict typing.

## When to Use

- **Enterprise PHP**: Complex business logic, long-term stability (LTS).
- **Components**: Using standalone libraries (Console, HttpFoundation) in other apps.
- **DDD**: Well-suited for complex domain modeling.

## Core Concepts

### Dependency Injection

The Container is central. Auto-wiring is default.

### Bundles

Plugin system.

### Attributes

`#[Route('/api', name: 'api')]` replaces YAML/Annotation configs.

## Best Practices (2025)

**Do**:

- **Use Maker Bundle**: `php bin/console make:controller`.
- **Use AssetMapper**: No Webpack/Node.js required for simple assets.
- **Use Messenger**: For async message bus (queues).

**Don't**:

- **Don't use YAML for Services**: Use PHP attributes and autowiring.

## References

- [Symfony Documentation](https://symfony.com/)