Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stuartherbert/sublime-phpsnippets

A collection of miscellaneous snippets for coding in PHP using Sublime Text 2
https://github.com/stuartherbert/sublime-phpsnippets

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

Additional PHP Snippets For Sublime Text 2
==========================================

[Sublime Text 2](http://www.sublimetext.com/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](http://wbond.net/sublime_packages/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 :)