ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

PHP Snippets

by Mombuyish ALL

sublime snippets is powerful function, customize some snippets to create PHP useful method and class

Details

Installs

  • Total 26K
  • Win 21K
  • Mac 2K
  • Linux 3K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 2 4 4 3 4 2 0 2 4 4 2 4 2 4 3 2 5 3 5 0 4 1 5 3 4 3 2 1 5 1 4 4 3 1 3 0 0 6 3 5 3 5 2 3 2
Mac 0 1 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 1 1 2 0 1 0 0 0 0 0 0 0 0
Linux 0 1 1 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 2 0 2 1 1 0 1 1 0 0 0 1 2 0 1 0 0 0 1 1 3 1 1 0 0 1 0 2

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.