PHPStorm + WordPress – File and Code Templates
File | Settings | Editor | File and Code Templates
Includes Tab
Includes (tab) -> Project File Header
/**
* ${FILE_NAME}.php file summary.
*
* ${FILE_NAME}.php file description.
*
* @link https://project.com
*
* @package Project
#if (${NAMESPACE} && ${NAMESPACE} != '' && ${NAMESPACE} != ${NAME}) * @subpackage ${NAMESPACE}
#end
* @author Arvil Meña <arvil@arvilmena.com>
* @since 1.0.0
*/
declare(strict_types=1);
Includes (tab) -> Project Class DocBlock
/**
* Class ${NAME}.
*
* Class ${NAME} description.
*
* @since 1.0.0
*/
Includes (tab) -> Project Interface DocBlock
/**
* Interface ${NAME}.
*
* Interface ${NAME} description.
*
* @since 1.0.0
*/
Files Tab
Files (tab) -> PHP Class
overwrite/override
<?php
#parse("PHP File Header.php")
#if (${NAMESPACE} && ${NAMESPACE} != '')
namespace ${NAMESPACE};
#end
#parse("Project Class DocBlock.php")
class ${NAME} {
}
Files (tab) -> PHP Interface
overwrite/override
<?php
#parse("Project File Header DocBlock.php")
#if (${NAMESPACE} && ${NAMESPACE} != '')
namespace ${NAMESPACE};
#end
#parse("Project Interface DocBlock.php")
interface ${NAME} {
}