Skip to content

Instantly share code, notes, and snippets.

@AntonioCS
Last active November 25, 2015 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonioCS/d930effaf744e8ee7c72 to your computer and use it in GitHub Desktop.
Save AntonioCS/d930effaf744e8ee7c72 to your computer and use it in GitHub Desktop.
Netbeans Template for PHP Class
<?php
<#assign licenseFirst = "/* ">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">
<#if namespace?? && namespace?length &gt; 0>
<#assign strings = namespace?split("\\")>
<#assign package = strings[0]>
<#assign category = namespace?substring(namespace?index_of("\\") + 1)>
namespace ${namespace};
<#else>
<#assign package="">
<#assign category="">
</#if>
/**
* Description of ${name}
*
* @category ${category}
* @package ${package}
* @author ${user}
*/
class ${name} {
public function __construct() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment