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

Additional PHP Snippets

by stuartherbert ST2/ST3

A collection of miscellaneous snippets for coding in PHP using Sublime Text 2

Labels snippets

Details

  • 2012.10.12.09.42.32
  • github.​com
  • github.​com
  • 5 years ago
  • 51 minutes ago
  • 5 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

Additional PHP Snippets For Sublime Text 2

Sublime Text 2 already ships with a lot of snippets for writing PHP code. This is a collection of additional snippets contributed by the PHP community.

Installation

Use Sublime Text 2's Package Control (Preferences -> Package Control -> Install Package -> Additional PHP Snippets) to install this plugin.

Snippets

We add the following snippets to speed up writing PHP code.

To use any of the snippets, simply type the name of the snippet, then press the key. Sublime Text 2 will insert the snippet, and you can then use the key to move through any placeholders that you need to replace.

For LICENSE.md-type files:

  • license-mit: insert the MIT license
  • license-newbsd: insert the new BSD license

__ For PHP files:__

  • php-getset: create getter/setter methods quickly and easily (based on a snippet originally published by @akrabat)
  • php-mit: insert the MIT license as a PHP docblock
  • php-newbsd: insert the new BSD license as a PHP docblock
  • php-section-comment: insert a prominent comment to help break up the sections of your class

Contributions Welcome

Requests for features, and pull requests with patches, are most welcome :)