Base snippets for symfony2 & Twig
Latest commit 0e62606 Nov 14, 2014 @smirik Update

TextMate Bundle for Symfony2

This bundle provides basic snippets for symfony2 in TextMate and Sublime Text.


[2013-06-02] Add "jump to file" functionality.


  • Create a bundle directory in your home if not exists & cd there.


mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles


mkdir -p ~/Library/Application\ Support/TextMate/Managed/Bundles/
cd ~/Library/Application\ Support/TextMate/Managed/Bundles/
  • Clone a copy from the github repository:
git clone Symfony.tmbundle
  • Reload TextMate or Bundles in TextMate.


Full snippets list is provided by bundle. Bundle also provides several tasks:

  • PHP CS Fixer: Opt + Cmd + L. Launch php-cs-fixer for current file. Lib should be already installed & available from command line.
  • Getters & setters. For any class you can select several properties & press Cmd + <. It will automatically create getters & setters for selected properties.
  • Jump to file: (thanks to szemian) move cursor to class name & press Shift + Cmd + D.