Skip to content

Tag reference

@copyright

The @copyright tag records who holds the copyright to an element, and typically the year or range of years it covers. It is most often placed on a file-level docblock or on the class that anchors a file, so that generated documentation and license-checking tools can surface ownership information without having to parse a separate license header.

Grammar

"@copyright" [ <Description> ]

Examples

A copyright notice naming the holder and year.
/**
* @copyright 2024 Acme Corp
*/
final class Mailer {}
A range of years, used on a file that has been maintained over time.
/**
* @copyright 2018-2024 Acme Corp. All rights reserved.
*/

Names by platform

phpdocumentor
@copyright

Parsing a @copyright tag produces a CopyrightTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries — the holder and year are read back out of the free-form description text.

final class CopyrightTag extends FlagTag {}

Defined by the PSR-19 draft PHPDoc Tags proposal and phpDocumentor’s tag reference.