Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP Package for Sublime Text 2
tree: 219bb7589e

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
$GLOBALS[''].sublime-snippet
$_COOKIE[''].sublime-snippet
$_ENV[''].sublime-snippet
$_FILES[''].sublime-snippet
$_GET[''].sublime-snippet
$_POST[''].sublime-snippet
$_REQUEST[''].sublime-snippet
$_SERVER[''].sublime-snippet
$_SESSION[''].sublime-snippet
$this->var = var;.sublime-snippet
Comments.tmPreferences
Comments.tmPreferences.cache
Constructor.sublime-snippet
Indentation Rules.tmPreferences
Indentation Rules.tmPreferences.cache
PHP.sublime-completions
PHP.tmLanguage
PHP.tmLanguage.cache
PHPDoc-class-var.sublime-snippet
PHPDoc-class.sublime-snippet
PHPDoc-constant-definition.sublime-snippet
PHPDoc-function-signature.sublime-snippet
PHPDoc-function.sublime-snippet
PHPDoc-interface.sublime-snippet
README.md
Start-Docblock.sublime-snippet
Symbol List.tmPreferences
Symbol List.tmPreferences.cache
class-{-}.sublime-snippet
define(-).sublime-snippet
defined(-).sublime-snippet
do-while(-).sublime-snippet
echo-___.sublime-snippet
else-{}.sublime-snippet
elseif(-).sublime-snippet
for(-).sublime-snippet
foreach(-).sublime-snippet
function-xx(-).sublime-snippet
if(-)-else(-).sublime-snippet
if(-).sublime-snippet
if-a-b;.sublime-snippet
include(-).sublime-snippet
include_once(-).sublime-snippet
new-array(-).sublime-snippet
php-$this.sublime-snippet
php-echo-$this.sublime-snippet
php-echo-___.sublime-snippet
php-echo-htmlentities(___).sublime-snippet
php-else.sublime-snippet
php-foreach-(___)-___-php-endforeach.sublime-snippet
php-if-(___)-___-php-else-___-php-endif.sublime-snippet
php-if-(___)-___-php-endif.sublime-snippet
php.sublime-snippet
php1.sublime-snippet
require(-).sublime-snippet
require_once(-).sublime-snippet
return $this->var;.sublime-snippet
return-$retVal;.sublime-snippet
return-$this;.sublime-snippet
return-FALSE;.sublime-snippet
return-TRUE;.sublime-snippet
switch(-)-case.sublime-snippet
switch(-).sublime-snippet
throw.sublime-snippet
try-{-___-}-catch-(___)-{-___-}.sublime-snippet
while(-).sublime-snippet

README.md

PHP Package for Sublime Text 2

By Florian Eckerstorfer <florian@theroadtojoy.at>

Twitter: @braincrafted

Basically this is a copy of the original PHP package. I made this modified version to match my Coding Guidelines. It also contains some additional snippets.

Installation

Create a backup of the original PHP package:

cd /Users/[Your User]/Library/Application\ Support/Sublime\ Text\ 2
mv Packages/PHP PHP.bak

Clone this package from GitHub:

git clone https://github.com/florianeckerstorfer/sublime-php ./Packages/PHP

Syntax

This package uses the following syntax for blocks:

if (condition)
{
    // code
}
Something went wrong with that request. Please try again.