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