Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stuartherbert/sublime-phpsnippets
- Owner: stuartherbert
- License: other
- Created: 2012-02-03T19:47:13.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-12T09:42:33.000Z (about 12 years ago)
- Last Synced: 2024-08-01T05:23:40.859Z (3 months ago)
- Homepage: https://github.com/stuartherbert/sublime-phpsnippets
- Size: 116 KB
- Stars: 52
- Watchers: 6
- Forks: 26
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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 classContributions Welcome
---------------------Requests for features, and pull requests with patches, are most welcome :)