My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 24, 2009 by bigdspbandj
Labels: Featured
SnippetsTemplates  
List of some common php snippets customizable to fit your needs.

PHP Snippets

Here are some snippets to get you guys going with your PHP development in Espresso. To set these up click the + icon in the snippets panel and then click "Add Snippet". Title it with whatever you want, and choose whatever you want your tab-trigger to be. Paste the code below in to the Snippet field and then click Done.

Note:

Class

suggested tab-trigger: sclass

${1:/**
 * ${2:className}
 *
 * ${3:class description}
 * 
 * @author ${4:your name}
 */}
${5:${6:abstract }class ${7:${2:ClassName}}${8: ${9:extends${10: ExtendedClassName}}${11: implements${12: ImplementedClassName}}}}
{
	${13:booyah}
}

Function

suggested tab-trigger: sfun

${1:/**
 * ${2:function description}
 *
${3: * @author ${4:your name}}
${5: * @param \$${6:param}}
 * @return ${7:return type}
 */}
${8:static|public|protected|private }function ${9:functionName}(\$${10:${6}})
{
	${11:booyah}
}

Variable

suggested tab-trigger: svar

${1:/**
 * ${2:variable description}
 *
 * @var ${3:variable type}
 */}
${4:static|public|protected|private }\$${5:variableName}${6: = ${7:null};}

Sign in to add a comment
Hosted by Google Code