Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,220 of 9,220 pages
About the help in other languages
All help pages

Attribution and copyright notices

Where credit goes in an extension - file headers, license files, ezinfo.php Includes, composer.json authors, README credits, Git history - and how to add your name without removing anyone else's.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/extension-development/part-5-extend-fork-contribute/attribution-and-copyright-notices.md

On this page

Attribution and copyright notices

Part 5, chapter 7. Credit is not a courtesy you may skip: the licenses require the notices to stay, and the people who wrote the code deserve to be named. This chapter lists every place credit lives in an extension and shows how to add your own without removing anyone else's.

The places credit lives

PlaceWhat goes thereRequired?
File headersthe copyright line(s) and the license notice of that filekeeping existing ones: yes
LICENSE (or LICENSE.md)the full text of the extension's licenseyes, for distribution
COPYRIGHT.md or a credits filewho holds copyright in whatrecommended
Bundled libraries' own LICENSE filesthe library's license text, next to ityes
ezinfo.php and extension.xmlCopyright, License, and Includes entries for included softwarethe convention of this project
composer.jsonauthors, licensestrongly recommended
README.mda "Credits" section: who made what, with linksrecommended
Git historyevery commit with its authorkeep it: fork, do not copy

File headers

A typical GPL header in an old extension:

<?php
//
// Copyright (C) 2009 Original Author. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//

When you change the file substantially, add your line below theirs. Do not replace it, do not "update" their year:

<?php
//
// Copyright (C) 2009 Original Author. All rights reserved.
// Copyright (C) 2026 Your Name: PHP 8 port and Content Security Policy changes.
//
// This program is free software; ...

The second line also serves the GPL 2 requirement to mark changed files "stating that you changed the files and the date". A note in the changelog is the other half.

A new file you write from scratch carries only your line (and the extension's license notice).

ezinfo.php: Includes

The administration's about page shows, under each extension, the software it says it includes. The kernel reads any ezinfo.php key that starts with Includes, as one entry or a list. se7enxweb/expchangeclass names the extension it was forked from:

'Includes' => array(
    array( 'Name' => "eZChangeclass",
           'Copyright' => "Copyright (C) 2007 (the original author)",
           'License' => "GNU General Public License v2.0" ) )

(In the real file the author's name is written out; it is shortened here.) Each entry may also carry Version and Info_url.

composer.json: authors

"authors": [
    { "name": "Your Name", "homepage": "https://example.org", "role": "Maintainer" },
    { "name": "Original Author", "role": "Original author" }
]

expchangeclass lists its maintainer and, second, the original author "with the role Original author of eZChangeclass". Packagist shows the list on the package's page.

README: credits

A short section, as se7enxweb/sevenx_dse has: a table of each part, who made it, and a link. sevenx_dse's credits name the embedded database tool, the project it was forked from, and the extension's own integration work, each with its maker, followed by a sentence of thanks. The thanks is not required; it is the right tone.

Removing a notice is never a cleanup

You will be tempted, during a cleanup, to remove "old" headers, author tags (@author), or a copyright line that names a company that no longer exists. Do not. A notice that is no longer accurate about the present is still accurate about the past, and the license requires it. Add, never subtract.

The same goes for @author tags in docblocks: keep them on code that person wrote.

Your work in someone else's project

When you contribute to another project by pull request, your credit is your commit: your name and email in the Git history. Follow the project's own rules for file headers; most projects do not want contributors to add copyright lines to their files, and that is their decision. Never put credit for yourself into a project's interface texts.

Checklist

  • To do: Every existing copyright line and license notice is still there.
  • To do: Changed files carry a line saying who changed them and when.
  • To do: Each bundled library has its own license file next to it.
  • To do: ezinfo.php has an Includes entry per included piece of software.
  • To do: composer.json authors names the original authors.
  • To do: The README has a credits section.

Since 29 October 2026 the copyright of Exponential is held by the Exponential Foundation and 7x together, the Foundation named first: "Exponential Copyright © 1998-2026 Exponential Foundation and 7x", in files "Copyright (C) 1998 - 2026 Exponential Foundation and 7x; All rights reserved." Who holds it and why, what the GPL lets you do, the third-party notices that stay and how to write the notice in new files and extensions: Copyright and copyleft.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x