As mentioned on the Joomla Docs, you need to include the following:
- package
- version
- author
- copyright
- license
like so:
/**
* @package PACKAGE_NAME
* @version VERSION_NUMBER
* @author YOUR NAME HERE
* @copyright (C) 2013- YOUR NAME HERE
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
You can make additions of you own such as including a creation date, modified date etc if you wish.
I have found a lot of extensions that don't use a license.txt
file, however just to be on the safe side, include one, however it doesn't need to be installed with the extension.
All requirements are in the link I provided above :)
Update:
I never really use all the information in the "version" section. I simply add the version number and that's it. In the docs though, it all kind of gets combined into one like so:
$Id:
- mod_XYZ.php >> name of file
- 599 >> version number
- 2010-03-20 >> date
- 23:26:33Z >> time (not sure what the **Z** is for though)
- you >> author
$
This is not mandatory, as you have already specified the essentials so you can simply use:
@version 1.2 or @version 1.3 etc
Hope this helps