PHP Snippets
sublime snippets is powerful function, customize some snippets to create PHP useful method and class
Details
Installs
- Total 26K
- Win 22K
- Mac 2K
- Linux 3K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 3 | 0 | 1 | 0 | 1 | 5 | 4 | 0 | 0 | 4 | 5 | 4 | 6 | 2 | 3 | 3 | 5 | 5 | 4 | 3 | 2 | 3 | 6 | 4 | 8 | 2 | 3 | 1 | 7 | 5 | 6 | 9 | 2 | 2 | 3 | 4 | 2 | 8 | 10 | 2 | 7 | 6 | 3 | 2 | 4 | 7 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 1 | 0 | 0 |
Linux | 1 | 0 | 0 | 2 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 1 | 0 | 1 | 1 | 0 | 2 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 2 |
Readme
- Source
- raw.githubusercontent.com
sublime-fast-snippets-with-php
Sublime snippets is powerful functions, customize some snippets to create PHP useful method and class.
Installation
Changing directory to your sublime configure local:
ubuntu:
.config/sublime-text-3/Packages/User
mac:
~/Library/Application Support/Sublime Text 3/Packages/User
windows:
Sublime Text 3/Packages/User
and you can do git clone
:
git clone https://github.com/Mombuyish/sublime-fast-snippets-with-php.git
or you can also download .zip
and unzip, put in there.
Usage
Here is customize shortcuts in sublime.
Support tab
to previous/next slug.
As you can see, I add new functions , references by PHPStorm.
shortcut | function |
---|---|
_c | build construct method |
class | build class with namespace |
aclass | build abstract class with namespace |
echo | echo |
fore | foreach |
forek | foreach with key |
inc | include |
inco | include_once |
prif | build private method |
prisf | build private static method |
prof | build protected method |
prosf | build protected static method |
pubf | build public method |
pubsf | build public static method |
rqr | require |
rqro | require_once |
thr | throw new… |
Notice
Those shortcuts are active .php
file, Use <?php
to define the file type.
Enjoy it.