Back to Validation

Email

docs/validators/Email.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]> -->

Email

  • Email()

Validates an email address.

php
v::email()->assert('[email protected]');
// Validation passes successfully

Templates

Email::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be an email address
inverted{{subject}} must not be an email address

Template placeholders

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

Categorization

  • Internet

Changelog

VersionDescription
3.0.0Templates changed
2.3.0Use "egulias/emailvalidator" version 4.0
0.9.0Use "egulias/emailvalidator" for email validation
0.3.9Created

See Also