/sublime-php-snippets

PHP Snippets for Sublime Text Editor

PHP Snippets for Sublime Text 3

Installation

Clone or download zip to install snippets.

Copy or extract to sublime text config path.

/home/$(whoami)/.config/sublime-text-3/Packages/User/

Usage

  • Type attr to create a new Attribute for class
  • Type const to create a new Constant for class
  • Type construct to create a new Constructor method for class
  • Type construct1 to create a new Constructor method using 1 parameter for class
  • Type construct2 to create a new Constructor method using 2 parameters for class
  • Type construct3 to create a new Constructor method using 3 parameters for class
  • Type getter to create a new Getter method for class
  • Type setter to create a new Setter method for class
  • Type method to create a new Method without parameters for class
  • Type method1 to create a new Method using 1 parameter for class
  • Type method2 to create a new Method using 2 parameters for class
  • Type method3 to create a new Method using 3 parameters for class
  • Type test to create a new Test method based in PHPUnit
  • Type testp to create a new Test method with Data Provider in PHPUnit
  • Type echop to debug the code using print_r()
  • Type echov to debug the code using var_dump()
  • Type comment to put a comment in your code
  • Type inherit to put a comment in your code
  • Type strict to declare strict_types in your code

I hope you enjoy it ;).