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