Back to Validation

NfeAccessKey

docs/validators/NfeAccessKey.md

3.1.11.4 KB
Original Source
<!-- SPDX-License-Identifier: MIT SPDX-FileCopyrightText: (c) Respect Project Contributors SPDX-FileContributor: Alexandre Gomes Gaigalas <[email protected]> SPDX-FileContributor: Henrique Moody <[email protected]> -->

NfeAccessKey

  • NfeAccessKey()

Validates the access key of the Brazilian electronic invoice (NFe).

php
v::nfeAccessKey()->assert('52060433009911002506550120000007800267301615');
// Validation passes successfully

v::nfeAccessKey()->assert('31841136830118868211870485416765268625116906');
// → "31841136830118868211870485416765268625116906" must be a NFe access key

Templates

NfeAccessKey::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be a NFe access key
inverted{{subject}} must not be a NFe access key

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Identifications

Changelog

VersionDescription
3.0.0Templates changed
0.6.0Created

See Also