My Handy PhpStorm Live Templates
Install
-
Go to PhpStorm Preferences | Tools | Settings Repository
-
Add Read-only Source https://github.com/TomasVotruba/PhpStorm-LiveTemplates
-
Restart PhpStorm and profit!
What is in this package?
st
declare(strict_types=1);
ctor
public function __construct($END$)
{
}
pub
public function $NAME$($ARGS$)
{
$END$
}
pri
private function $NAME$($ARGS$)
{
$END$
}
vs
/**
* @var string
*/
va
/**
* @var string[]
*/
vi
/**
* @var int
*/
ra
/**
* @return string[]
*/