Extensions GPL notices
From Joomla! Documentation
(Difference between revisions)
(New page: {{incomplete}} {{RightTOC}} 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...) |
|||
| Line 13: | Line 13: | ||
<?php | <?php | ||
/** | /** | ||
| − | * @ | + | * @package Module XYZ for Joomla! 1.5 |
* @version $Id: mod_XYZ.php 599 2010-03-20 23:26:33Z you $ | * @version $Id: mod_XYZ.php 599 2010-03-20 23:26:33Z you $ | ||
* @author YOUR NAME HERE | * @author YOUR NAME HERE | ||
* @copyright (C) 2010- YOUR NAME HERE | * @copyright (C) 2010- YOUR NAME HERE | ||
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html | * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
**/ | **/ | ||
</source> | </source> | ||
Revision as of 00:52, 9 May 2010
Note
Please note that the content on this page is currently incomplete. Please treat it as a work in progress.
- This article was last edited by Horus 68 (talk| contribs) 3 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:
PHP files
1- 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
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 **/
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:
- GNU/GPL http://www.gnu.org/copyleft/gpl.html
- GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
- GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
TXT file
3- 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: