Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Symfony Command Line Helper
Python
branch: master
Failed to load latest commit information.
actions
commands
lib
snippets
(Linux).sublime-keymap
(OSX).sublime-keymap
(Windows).sublime-keymap
Context.sublime-menu
README.md
__init__.py
sf.tmPreferences
sfCommand.py
sfcommand.sublime-commands
sfcommand.sublime-settings

README.md

sfcommand

Symfony2 Command Line Helper for Sublime Text 3

Installation

The easiest way to install this is through Package Control.

If you don't have Package Control installed you can always clone the repo.

From a terminal cd into your 'Package' folder. Look at Sublime Text->Preferences->Browse Packages... to find out where that folder is.

Then clone the repo: git clone https://github.com/jtwebb/sfcommand SfCommand

Usage

You can access the commands via the command palette or by right clicking.

If you type in app/console in the command line you'll see a list of all available commands for Symfony2. I tried to implement most/all of them. I've even included the FOS User Bundle.

As of right now, the available commands are:

  • assetic:dump
  • assets:install
  • cache:clear --env=dev
  • cache:clear --env=prod
  • cache:warmup
  • config:dump-reference
  • container:debug
  • doctrine:clear-metadata
  • doctrine:clear-query
  • doctrine:clear-result
  • doctrine:database:create
  • doctrine:database:drop
  • doctrine:ensure-production-settings
  • doctrine:generate:crud
  • doctrine:generate:entity
  • doctrine:generate:entities
  • doctrine:mapping:convert
  • doctrine:mapping:import
  • doctrine:mapping:info
  • doctrine:query:dql
  • doctrine:query:sql
  • doctrine:schema:create
  • doctrine:schema:drop
  • doctrine:schema:update
  • doctrine:schema:validate
  • fos:user:create
  • fos:user:activate
  • fos:user:deactivate
  • fos:user:promote
  • fos:user:demote
  • fos:user:change-password
  • generate:bundle
  • generate:controller
  • generate:doctrine:crud
  • generate:doctrine:entity
  • generate:doctrine:entities
  • init:acl
  • router:debug
  • router:match
  • router:dump-apache
  • swiftmailer:spool:send
  • swiftmailer:debug
  • translation:update
  • twig:lint
  • Custom Symfony Command

I know there is another, similar, package; but it doesn't seem to be updated regularly and I needed/wanted some more commands.

Snippets are slowly being added as well.

TODO:

  • Add a lot more snippets
  • Jump between entity/repository
  • Autocomplete routes, namespaces
Something went wrong with that request. Please try again.