docs/validators/Hetu.md
Hetu()Validates a Finnish personal identity code (HETU).
v::hetu()->assert('010106A9012');
// Validation passes successfully
v::hetu()->assert('290199-907A');
// Validation passes successfully
v::hetu()->assert('280291+923X');
// Validation passes successfully
v::hetu()->assert('010106_9012');
// → "010106_9012" must be a Finnish personal identity code
The validation is case-sensitive.
Hetu::TEMPLATE_STANDARD| Mode | Template |
|---|---|
default | {{subject}} must be a Finnish personal identity code |
inverted | {{subject}} must not be a Finnish personal identity code |
| Placeholder | Description |
|---|---|
subject | The validated input or the custom validator name (if specified). |
| Version | Description |
|---|---|
| 3.0.0 | Created |