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