GPL file header in PHP files

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
hobra
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sat Sep 04, 2010 5:37 pm

GPL file header in PHP files

Post by hobra » Sat Apr 30, 2011 2:12 pm

Hello,

I am the developer of a Joomla component licensed under GNU/GPLv2. Currently, all my files have such a header:

Code: Select all

	/**
	 * @package Joomla
	 * @subpackage [PROGRAM]
	 * @copyright (C) [COMPANY]
	 * @license GNU/GPL, see license.txt
	 * [PROGRAM] is free software; you can redistribute it and/or
	 * modify it under the terms of the GNU General Public License 2
	 * as published by the Free Software Foundation.
	 * 
	 * [PROGRAM] is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU General Public License for more details.
	 * 
	 * You should have received a copy of the GNU General Public License
	 * along with [PROGRAM]; if not, write to the Free Software
	 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
	 * or see http://www.gnu.org/licenses/.
	 */
What bothers me is that this header is rather long an unnecessarily bloats my deliverable (zip) archive. With my over 200 source files I calculated that it would save my about 160kB when I would not inlude this header.

The question is for me: how could a valid header look like that is significantly smaller?
Would this be an option:

Code: Select all

	/**
	 * @package Joomla
	 * @subpackage [PROGRAM]
	 * @copyright (C) [COMPANY]
	 * @license GNU/GPL, see license.txt
	 * [PROGRAM] is free software; you can redistribute it and/or
	 * modify it under the terms of the GNU General Public License 2
	 * as published by the Free Software Foundation.
	 */
Or would is even this one sufficient:

Code: Select all

	/**
	 * @package Joomla
	 * @subpackage [PROGRAM]
	 * @copyright (C) [COMPANY]
	 * @license GNU General Public License 2, see license.txt
	 */
What do you think?

Thanks for taking the time to answer!
hobra

Locked

Return to “Extensions for Joomla! 1.5”