PHP Snippets
sublime snippets is powerful function, customize some snippets to create PHP useful method and class
Details
Installs
- Total 27K
- Win 22K
- Mac 2K
- Linux 3K
Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 7 | 2 | 3 | 0 | 3 | 8 | 1 | 2 | 0 | 2 | 4 | 3 | 5 | 4 | 1 | 4 | 4 | 3 | 3 | 1 | 0 | 3 | 7 | 2 | 4 | 1 | 8 | 6 | 3 | 5 | 2 | 2 | 5 | 1 | 2 | 10 | 3 | 2 | 3 | 4 | 3 | 8 | 2 | 4 | 1 | 1 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Linux | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 |
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.