Download the PHP package malukenho/docheader without Composer
On this page you can find all versions of the php package malukenho/docheader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download malukenho/docheader
More information about malukenho/docheader
Files in malukenho/docheader
Package docheader
Short Description A small library to check header docs
License MIT
Homepage https://github.com/malukenho/docheader
Informations about the package docheader
DocHeader
How much time we have wasted to change copyright years in our project? How much times we forget to update it and then we're in the middle of a new year using last year copyright dated? That's sucks!!one!!
Put doc header check in your build and get it out of your way!
Installing
Setting up
Put your header in one .docheader
file in the directory that you're
running the checker/fixer. It file must contain only the dockblock as
you want, like following example:
and then run the checker:
So, you get errors or a message saying that everything is ok!
Docheader file
By default, the docheader
search for a .docheader
file on the current directory that
the command is executed. But you can specify a folder or a file to be used as placeholder
using the option --docheader [file-or-path]
Current year placeholder
You can also put %year%
on your .docheader
file to refer to the current
Year, like that:
Regexp assertion
If you're using >=0.1.5
version, you can use the %regexp:%
placeholder to match some content.
Example:
In this case %regexp:\d{2}%
assert that it should be a number of two digits between 20
and -
.
All versions of docheader with dependencies
symfony/console Version ^4.4 || ^5.4 || ^6.0 || ^7.0
symfony/finder Version ^4.4 || ^5.4 || ^6.0 || ^7.0