ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

CTags for PHP

by erichard ST2

A Sublime Text 2 plugin that use CTag for cool PHP programming

Details

  • 2013.03.14.09.28.04
  • github.​com
  • github.​com
  • 11 years ago
  • 1 hour ago
  • 12 years ago

Installs

  • Total 19K
  • Win 11K
  • Mac 4K
  • Linux 4K
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime CTags PHP

This Sublime Text 2 Package provides cool stuff for PHP 5.3+ coding session.

Sublime Text 3 support

This plugin will NOT work in Sublime Text 3 !

I've made a new plugin which use the built-in index instead of ctags. Take a look at SublimePHPCompanion. This new plugin is even better as it sort the use in your classes.

Dependency

Obviously, you NEED the CTags plugin for Sublime Text 2.

Installation

Search ctagphp in package control and you have done !

Or clone this repo in your Sublime Text 2 Package dir.

$ git clone https://github.com/erichard/SublimeCTagsPHP

Features

Two AWESOME features for the moment !

import_use

The first one is 'import use statement'. Just bring your cursor hover a class name, hit the F5 key (default but customizable) and that's it.

Based on the current file content, the use statement could be added in :

  • Below the last use statement
  • Below the namespace statement (with an empty line between both)
  • Below the php opening tag (with an empty line between both)

import_namespace

Just hit the F4 key, it will add the namespace definition based on the absolute filename of the current file. I use a simple trick to determine where the namespace begun, actually the namespace will start at the first CamelCased folder.

If a namespace is already declared, the command will shout how crazy you are in the status bar.

Warning: This feature require a filename so the command won't work in an unsaved buffer.