Back Button Tooling

Professional PHP Workflow in Sublime Text 3

This series is exclusively for the working developer who, though familiar with Sublime Text, needs to tweak and optimize their editor particularly for PHP development. Come along, as we review everything from error detection, to project management, to automatic PSR-2 fixing.

11 episodes
41:45 mins
Start Series
    1. Run Time 5:15 Free

      Because we'll be starting with a fresh installation of Sublime Text, let's take a few moments to apply a quick bit of paint to the UI. Visuals are important, so don't skip this step!

    2. Run Time 2:11 Free

      Sublime Text offers countless overrides and configuration settings. In this episode, we'll apply a small handful of the ones I use most often in my own workflow.

    3. Run Time 2:24 Free

      You're surely aware of the command-p shortcut for rapidly switching between files, but there are other ways to browse your codebase as well. Let's review a few of my favorite techniques.

    4. Run Time 7:18 Free

      Every PHP developer needs to install the SublimePHPCompanion package. It's not optional. Pull this bad boy in right now, and begin rapidly importing classes, adding constructor arguments, and more.

    5. Run Time 1:13 Free

      If you're manually opening the sidebar and right-clicking to create a new file, there's an easier way: pull in the AdvancedNewFile package, and save countless hours each day (or about 45 seconds, but still...).

    6. Run Time 5:20 Free

      I'm sure you're familiar with the process of creating basic snippets, but don't skimp on these. Seek out repeated keystrokes like a hawk. Can you instead translate that repetition into a reusable snippet? In this episode, we'll review just a few simple, yet enormously useful, expansions. In the process, we'll also pull in the SnippetMaker package to make the act of extracting snippets much less painful.

    7. Out of the box, Sublime Text provides no error detection whatsoever. Forget a semicolon or brace? Sorry, you're on your own. Certainly, we can't have that, so let's pull in the Sublime Linter package to provide instant feedback each time we save a file.

    8. Run Time 5:03 Free

      It's great that we can now detect PSR-2 inconsistencies in our projects, but wouldn't it be nice if those issues could be automatically fixed without requiring an ounce of effort on our parts? And what if we could extend things further to provide extra optimizations? For example, can we automatically remove unused class imports each time we save a file? Well of course we can, thanks to php-cs-fixer.

    9. If you maintain multiple codebases or open-source projects, you may find that manually switching between them can prove cumbersome. Instead, let's leverage Sublime's project functionality to ease the burden. We can even pull in the ProjectManager package to simplify things further.

    10. If you work on multiple computers, such as a laptop and main workstation, you'll likely want to sync your Sublime Text settings between the two. We can accomplish this quite easily by leveraging Dropbox and symlinks. Let's review the full process in this episode.

    11. It's important to find a good workflow for rapidly testing your code. While it's not too much trouble to manually switch to the command line each time, we can improve things greatly by leveraging the Sublime-PHPUnit package.

You May Also Enjoy...

Here are some additional series that may be up your alley.

Tooling Be Awesome in PHPStorm

Think about how many hours each week you spend within your editor. Doesn't it make sense to unlock every inch of its capabilities? I certainly subscri...

1:30:43 hrs
Tooling Sublime Text Mastery

If you intend to dedicate a career to web development, shouldn't you, in the process, harness every ounce of your code editor? In this series, I'll sh...

56:39 mins
Tooling Vim Mastery

There's a reason why, after decades, countless developers still prefer Vim as their code editor of choice. That many people can't be wrong, right? In...

2:37:27 hrs
Tooling Visual Studio Code for PHP Developers

Out of the blue, Microsoft jumps into the editor wars with an incredible offering that gives Sublime Text an overwhelming run for its money. In fact,...

1:20:20 hrs