Symfony Snippets
Controllers, entities, forms, services, commands and Twig for Symfony. Install the PHP extension for colors.
Type a prefix and press Tab. 15 snippets.
| Language | Prefix | What it inserts |
|---|---|---|
| PHP | sfctrl |
A controller |
| PHP | sfroute |
A Route attribute |
| PHP | sfent |
A Doctrine entity |
| PHP | sfsvc |
A service |
| PHP | sfcmd |
A console command |
| PHP | sfform |
A form type |
| PHP | sfsub |
An event subscriber |
| PHP | sfrepo |
A repository query |
| PHP | sfjson |
A JSON response |
| PHP | sfvoter |
A voter |
| Twig and Jinja | twext |
extends |
| Twig and Jinja | twpath |
A route path |
| Twig and Jinja | twasset |
An asset |
| Twig and Jinja | twform |
Render a form |
| Twig and Jinja | twinc |
include |
This extension runs no code and asks for no permissions.