SublimeText one of the most widely used text editor. It’s not just a text editor, if you are ready to manipulate it, it can give you the power of an IDE like Netbeans, Eclipse or MS Visual Studio. I have been using SublimeText for Web Development for a long time. As far as I know, this is the best Text Editor I have ever used. SublimeText for PHP Development needs some extra packages/plugins.
SublimeText can use itself for development or we can add some plugins that will favor our programming/coding. The basic plugins for PHP development using SublimeText Editor are following.
For PHP Specific
PHPfmt – PHP formatter
Sublime Linter – PHP
Emmet – Greatly improve your HTML & CSS workflow
SublimeLinter – Interactive code linting framework for Sublime Text 3
jQuery – Provides snippets for most of jQuery’s methods
Inc-Dec-Value – Increase / decrease numbers/dates/hex color values etc
ColorHighlighter – Color Highlighting
Case Conversion – Converts the current word/token between pascal, camel, snake etc
BracketHighlighter – Bracket and tag highlighter
AlignTab – An alignment plugin using regular expression
MultiEditUtils – Enhances editing of multiple selections
MoveText – Setup a text ‘tunnel’ to move code from one location to another
EditorConfig – Maintain consistent coding styles between different editors
For the User Interface
SideBarEnhancements – Sidebar Files and folders enhancements
Origami – Split the window, clone etc
Soda Theme – Theme UI based on Dark and Light themes
Themr – UI theme selector
ColorSchemeSelector – Select theme quickly via the Quick Panel
Base16 Color Schemes – Sublime colour schemes
TabsExtra – Sticky tabs, more tab closing options, and additional menu items etc
Git Gutter – Track Git commits, changes from the last commit
Modific – Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS).
How to install packages in SublimeText Editor
Step 1 : Press Ctrl+` to open the console
Step 2 : Paste the Package Controller code ( For code click here )
Step 3 : Restart SublimeText
Step 4 : Press Ctrl + Shift + P to open package installer
Step 5 : Type “install” without quotes
Step 6 : Enter the packages name, one by one and wait for complete the installation
Configuration for PHPfmt Package for SublimeText 2 and 3
Open sublime text -> Package Settings -> PHPfmt-> user Settings and add the following lines of code.
For SublimeText 2
For SublimeText 3
Note : You have to make sure that the PHP path specified in the above configuration is correct.
Thanks for reading, SublimeText for PHP Development. Happy Coding.