This package is abandoned and no longer maintained. The author suggests using the phpcq/author-validation package instead.

Check if all authors of a particular file are mentioned in the copyright header.

1.2.1 2014-12-15 19:10 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:42:19 UTC


Version Stable Build Status Upstream Build Status License Downloads

Validate the author information within PHP files, composer.json, bower.json or packages.json.

This is useful to ensure that all authors (from git history) mentioned in all PHP files, the composer.json, bower.json and packages.json.


Add to your composer.json in the require-dev section:

"contao-community-alliance/build-system-tool-author-validation": "~1.0"

Call the binary:


Optionally pass a path to check:

./vendor/bin/check-author.php /path/to/some/repository/also/with/subdir


Optionally you can pass the path to a config file (defaults to .check-author.yml) which shall be used.

# Example .check-author.yml

# Map multiple authors to a single one (aliasing of contributors).
  # original: alias
  "John Doe <>": "John Doe <>"
  # or original: [multiple aliases]
  "John Doe <>": ["John Doe <>", "Acme Inc <>"]
  # or
  "John Doe <>":
    - "John Doe <>"
    - "Acme Inc <>"

# Ignore commits from these authors (equivalent to cmd line parameter --ignore=...)
  - Build Bot <>

# If present, scan only these and not the whole base dir (equivalent to cmd line arguments).
# Values must either be absolute paths or relative to the current directory.
  - src

# Paths to exclude from scanning (equivalent to cmd line parameter --exclude=...)
  - Foo.php
  - /tests/*
  - */languages

# Enforce copy-left author for certain files.
  "John Doe <>": "/library"
  # or
  "John Doe <>": ["/library", "File.php"]
  # or
  "John Doe <>":
    - "File.php"