Actions

Difference between revisions of "Extensions GPL notices"

From Joomla! Documentation

Line 5: Line 5:
 
All source code files in the core Joomla distribution must contain the following comment block as the header:
 
All source code files in the core Joomla distribution must contain the following comment block as the header:
  
==PHP files==
+
==1- PHP files==
1- Notice at the top of each php file stating that it is distributed under the terms of the GPL
+
Notice at the top of each php file stating that it is distributed under the terms of the GPL
 
* see http://www.fsf.org/licensing/licenses/gpl-howto.html for details
 
* see http://www.fsf.org/licensing/licenses/gpl-howto.html for details
  
Line 21: Line 21:
 
</source>
 
</source>
  
==XML file==
+
==2- XML file==
 
A <license> tag in your extension's XML file stating that it is under GPL,
 
A <license> tag in your extension's XML file stating that it is under GPL,
 
as in this tags for a module:
 
as in this tags for a module:
Line 42: Line 42:
 
* GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 
* GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
  
==TXT file==
+
==3- TXT file==
3- Provide a copy of the GPL license within your package
+
Provide a copy of the GPL license within your package
 
*note: this file doesn't need to be installed with the extension, just included with the package as a text file
 
*note: this file doesn't need to be installed with the extension, just included with the package as a text file
  

Revision as of 23:53, 8 May 2010

Quill icon.png
Content is Incomplete

This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by Horus 68 (talk| contribs) 4 years ago. (Purge)

Contents

To list your file in JED under GPL license its required 3 things

All source code files in the core Joomla distribution must contain the following comment block as the header:

1- PHP files

Notice at the top of each php file stating that it is distributed under the terms of the GPL

as in this comment block as the header:

<?php
/**
 * @package Module XYZ for Joomla! 1.5
 * @version $Id: mod_XYZ.php 599 2010-03-20 23:26:33Z you $
 * @author YOUR NAME HERE
 * @copyright (C) 2010- YOUR NAME HERE
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
**/

2- XML file

A <license> tag in your extension's XML file stating that it is under GPL, as in this tags for a module:

<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
        <name>Extension name goes here</name>
        <creationDate>20 April 2010</creationDate>
        <author>Author name goes here</author>
        <copyright>Copyright holder name goes here</copyright>
        <license>GNU/GPLv3 http://www.gnu.org/copyleft/gpl.html</license>
        <authorEmail>you@youremail.com</authorEmail>
        <authorUrl>http://www.yoursite.com</authorUrl>
        <version>1.0</version>
        <description>DESCRIPTION GOES HERE</description>

For GPL you could use other versions of the license:

3- TXT file

Provide a copy of the GPL license within your package

  • note: this file doesn't need to be installed with the extension, just included with the package as a text file

Libraries

Libraries (Js scripts, flash) can be licensed under other licenses as in: