Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Laravel News:
Run PHPUnit Tests From Sublime Text
Dec 29, 2016 @ 15:30:48

On the Laravel News site they've posted a guide showing you how to setup and run PHPUnit tests from Sublime Text, one of the more popular editors for code development.

Sublime Text is a great editor. It’s lightweight, fast, and extremely customizable. However, one downside to it compared to a full blown IDE is it doesn’t come with support for running your PHPUnit tests directly from the test class you are working with.

To solve this problem, Adam Wathan created and released a free package named Sublime PHPUnit that allows you to run your tests from a keyboard shortcut. Let’s take a look at how to add this package to your arsenal.

The post walks you through the installation of the tool (manually cloning the repository) and how to then use it via Sublime's command palette. There's also some instruction on customizing the plugin's setup and allowing for shortcut keystrokes bound to events the plugin provides. The final tip helps you change the tool used to run the tests (the Terminal app by default) over to something like ITerm.

tagged: phpunit test unittest sublimetext editor plugin keystroke run

Link: https://laravel-news.com/sublime-phpunit

Quinton Parker's Blog:
vim tips for php programmers
Feb 05, 2009 @ 14:43:44

In a new post to his blog Quinton Parker shares a few tips for those PHP developers out there using vim as their editor of choice.

VIM is a powerful command-line text editor usually a default package in the majority of *nix distros (that includes Mac’s OS X). I believe there are ports available for other OSes, even winblows. Firstly, vim is a man’s editor. Whiners and GUI lovers can stop reading now. Although, VIM offer GUI ports such as MacVim. Men with thick beards, please stay tuned.

He starts with a bit of comparison between opinions on IDE versus editor and comments from others on both sides of the vim argument. Then he gets to the tips - here's a list of some of them:

  • Syntax highlighting
  • Tabs as spaces
  • Search and show matches as you type
  • PHP-specific highlighting
  • Highlighting matching brackets/parentheses
  • Auto change to to editing file’s cwd
tagged: vim editor tip programmer list opinion ide texteditor keystroke

Link:

Matthew Weir O'Phinney's Blog:
Vim Productivity Tips for PHP Developers
Mar 24, 2008 @ 12:58:31

Matthew Weir O'Phinney has posted a few handy tips for PHP developers fond of working in one of the most powerful command-line editors, Vim.

I use Vim for all my editing needs -- TODO lists, email, presentation outlines, coding in any language... everything. So, I thought I'd start sharing some of my vim habits and tools with others, particularly those that pertain to using Vim with PHP.

He includes tips for things like mapping keystrokes (to the PHP interpreter and linter), using the Project plugin to make setting up projects easier and a mention (again) of ctags.

tagged: vim editor productivity tip developer project keystroke ctag

Link:


Trending Topics: