Skip to content
sublime snippets is powerful function, customize some snippets to create PHP useful method and class
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Class.sublime-snippet
README.md
__construct.sublime-snippet
aclass.sublime-snippet
echo.sublime-snippet
foreach with key.sublime-snippet
foreach.sublime-snippet
include.sublime-snippet
include_once.sublime-snippet
private_method.sublime-snippet
private_static_method.sublime-snippet
protected_method.sublime-snippet
protected_static_method.sublime-snippet
public_method.sublime-snippet
public_static_method.sublime-snippet
require.sublime-snippet
require_once.sublime-snippet
throw.sublime-snippet

README.md

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.

You can’t perform that action at this time.