JetBrains Fleet 1.40 Help

List of PHP live templates

This table summarizes the live templates that you can use with your PHP code.

Abbreviation

Description

Template text

Can be applied in

classFQN

current class FQN

$CLASS_FQN$

PHP

className

current class name

$CLASS_NAME$

PHP

ctor

constructor

function __construct($PARAMETERS$) { $END$ }

PHP Class Member

PHP Trait Member

eco

'echo' statement

echo "$END$";

PHP Statement

fore

foreach(iterable_expr as $value) {...}

foreach ($ITERABLE$ as $VAR_VALUE$) { $END$ }

PHP Statement

forek

foreach(iterable_expr as $key => $value) {...}

foreach ($ITERABLE$ as $VAR_KEY$ => $VAR_VALUE$) { $END$ }

PHP Statement

fori

Create iteration loop

for($INDEX$ = 0; $INDEX$ < $LIMIT$; $INDEX$++) { $END$ }

PHP Statement

fun

function

function $NAME$($PARAMETERS$){ $END$ }

PHP Statement

PHP Class Member

PHP Trait Member

inc

'include' statement

include "$END$";

PHP Statement

PHP Expression

inco

'include_once' statement

include_once "$END$";

PHP Statement

PHP Expression

pf

public function

public function $NAME$($PARAMETERS$) { $END$ }

PHP Class Member

PHP Trait Member

prf

private function

private function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

prif

private function

private function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

prisf

private static function

private static function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

prof

protected function

protected function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

prosf

protected static function

protected static function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

ps

public static

public static $END$

PHP Class Member

PHP Trait Member

pubf

public function

public function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

pubsf

public static function

public static function $NAME$($PARAMETERS$){ $END$ }

PHP Class Member

PHP Trait Member

rqr

'require' statement

require "$END$";

PHP Statement

PHP Expression

rqro

'require_once' statement

require_once "$END$";

PHP Statement

PHP Expression

t

$this

$this->

PHP Class Member

PHP Trait Member

thr

throw new

throw new $END$

PHP Statement

PHP Expression

Last modified: 11 February 2024