Back to Validation

Lowercase

docs/validators/Lowercase.md

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

Lowercase

  • Lowercase()

Validates whether the characters in the input are lowercase.

php
v::stringType()->lowercase()->assert('xkcd');
// Validation passes successfully

Templates

Lowercase::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must consist only of lowercase letters
inverted{{subject}} must not consist only of lowercase letters

Template placeholders

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

Categorization

  • Strings

Changelog

VersionDescription
3.0.0Templates changed
0.3.9Created

See Also