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
Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 1 | 3 | 1 | 3 | 4 | 2 | 3 | 0 | 2 | 3 | 2 | 2 | 4 | 2 | 4 | 3 | 4 | 5 | 4 | 1 | 3 | 3 | 4 | 4 | 5 | 1 | 4 | 4 | 3 | 1 | 2 | 5 | 4 | 5 | 2 | 1 | 1 | 8 | 4 | 1 | 7 | 2 | 3 | 0 |
Mac | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 |
Linux | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 2 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 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.