NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2526 most downloaded on Packagist
Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 10 months
Some releases are documented
notes for 24 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
84 releases · first in 2012
Added #275 adds a new strict option to Zend\Validator\Date ; when true , the value being validated must both be a date AND in the same format as provi
#275 adds a new strict option to Zend\Validator\Date; when true, the value being validated must both be a date AND in the same format as provided via the format option.
#264 adds Zend\Validator\UndisclosedPassword, which can be used to determine if a password has been exposed in a known data breach as reported on the Have I Been Pwned? website. Documentation
#266 adds a new option to the File\Extension and File\ExcludeExtension validators, allowNonExistentFile. When set to true, the validators will continue validating the extension of the filename given even if the file does not exist. The default is false, to preserve backwards compatibility with previous versions.
#264 bumps the minimum supported PHP version to 7.1.0.
#279 updates the magic.mime file used for file validations.
One column per quarter.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #277 fixes File\Hash validator in case when the file hash contains only dig
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #272 changes curly braces in array and string offset access to square brack
#272 changes
curly braces in array and string offset access to square brackets
in order to prevent issues under the upcoming PHP 7.4 release.
#231 fixes validation of input hashes in Zend\Validator\File\Hash validator when provided as array.
Only string hashes are allowed. If different type is provided Zend\Validator\Exception\InvalidArgumentException is thrown.
Added #250 adds support for PHP 7.3. Changed #251 updates the logic of each of the various Zend\Validator\File validators to allow validating against
Zend\Validator\File validatorsUploadedFileInterface instances, expandingAdded #249 adds support in the hostname validator for the .rs TLD. Changed #253 updates the list of allowed characters for a DE domain name to match t
.rs TLD.DE domain name to match those published by IDN.Added #237 adds support for the PSR-7 UploadedFileInterface to each of the Upload and UploadFile validators. #220 adds image/webp to the list of known
#237 adds support for the PSR-7 UploadedFileInterface
to each of the Upload and UploadFile validators.
#220 adds image/webp to the list of known image types for the IsImage validator.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #241 has the Hostname validator return an invalid result early when an empt
Added #202 adds the ability to use custom constant types in extensions of Zend\Validator\CreditCard , fixing an issue where users were unable to add n
#202 adds the ability to use custom constant types in extensions of Zend\Validator\CreditCard, fixing an issue where users were unable to add new brands as they are created.
#203 adds support for the new Russian bank card "Mir".
#204 adds support to the IBAN validator for performing SEPA validation against Croatia and San Marino.
#209 adds documentation for the Explode validator.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #194 modifies the EmailAddress validator to omit the INTL_IDNA_VARIANT_UTS4
EmailAddress validator to omit the INTL_IDNA_VARIANT_UTS46 flag to idn_to_utf8() if the constant is not defined, fixing an issue on systems using pre-2012 releases of libicu.if a countable value exactly matches a configured count
#175 adds support for PHP 7.2 (conditionally, as PHP 7.2 is currently in beta1).
#157 adds a new validator, IsCountable, which allows validating:
#169 modifies how the various File validators check for readable files. Previously, they used stream_resolve_include_path, which led to false negative checks when the files did not exist within an include_path (which is often the case within a web application). These now use is_readable() instead.
#185 updates the zend-session requirement (during development, and in the suggestions) to 2.8+, to ensure compatibility with the upcoming PHP 7.2 release.
#187 updates the Between validator to require that both a min and a max value are provided to the constructor, and that both are of the same type (both integer/float values and/or both string values). This fixes issues that could previously occur when one or the other was not set, but means an exception will now be raised during instantiation (versus runtime during isValid()).
#188 updates the ConfigProvider to alias the service name ValidatorManager to the class Zend\Validator\ValidatorPluginManager, and now maps the the latter class to the ValidatorPluginManagerFactory. Previously, we mapped the service name directly to the factory. Usage should not change for anybody at this point.
EmailAddress validator handles the local part of an address, allowing it to support unicode.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #180 fixes how Zend\Validator\File\MimeType "closes" the open FileIn
Zend\Validator\File\MimeType "closes" the open FileInfo handle for the file
being validated, using unset() instead of finfo_close(); this resolves a
segfault that occurs on older PHP versions.Zend\Validator\Between handles two situations: (1) when a non-numeric value
is validated against numeric min/max values, and (2) when a numeric value is
validated against non-numeric min/max values. Previously, these incorrectly
validated as true; now they are marked invalid.### Added - Nothing. ### Changes - #154 updates the CreditCard validator to allow 19 digit Discover card values, and 13 and 19 digit Visa card values,
CreditCard validator to allow 19 digit Discover card values, and 13 and 19
digit Visa card values, which are now allowed (see
https://en.wikipedia.org/wiki/Payment_card_number).Hostname validator to support .hr (Croatia) IDN domains.Iban validator to support Belarus.ValidatorPluginManagerFactory factory initializes the plugin manager instance,
ensuring it is injecting the relevant configuration from the config service
and thus seeding it with configured validator services. This means
that the validators configuration will now be honored in non-zend-mvc contexts.### Added - #78 added %length% as an optional message variable in StringLength validator ### Deprecated - Nothing. ### Removed - #151 dropped php 5.5
%length% as an optional message variable in StringLength validator"suggest" clauses in composer.json, since some dependencies are not always
required, and may lead to runtime failures.### Added - #110 adds new Mastercard 2-series BINs ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #81 registers the Uuid validator into
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #92 adds message templates to the ExcludeMimeType validator, to allo
ExcludeMimeType validator, to allow differentiating
validation error messages from the MimeType validator.### Added - #58 adds a new Uuid validator, capable of validating if Versions 1-5 UUIDs are well-formed. - #64 ports Zend\ModuleManager\Feature\Validat
Uuid validator, capable of validating if Versions 1-5 UUIDs are well-formed.Zend\ModuleManager\Feature\ValidatorProviderInterface to
Zend\Validator\ValidatorProviderInterface, and updates the Module::init()
to typehint against the new interface instead of the one from
zend-modulemanager. Applications targeting zend-mvc v3 can start updating
their code to implement the new interface, or simply duck-type against it.### Added - #67 adds support for Punycoded top-level domains in the Hostname validator. - #79 adds and publishes the documentation to https://zendfram
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #65 fixes the Module::init() method to properly receive a ModuleMana
Module::init() method to properly receive a ModuleManager instance, and
not expect a ModuleEvent.This release updates the TLD list to the latest version from the IANA.
ValidatorPluginManagerFactory, which can be consumed by container-interop / zend-servicemanager to create and return a ValidatorPluginManager instance
ValidatorPluginManagerFactory, which can be consumed by container-interop /
zend-servicemanager to create and return a ValidatorPluginManager instance.ConfigProvider, which maps the service ValidatorManager to the above
factory.Module, which does the same as ConfigProvider, but specifically for
zend-mvc applications. It also provices a specification to
Zend\ModuleManager\Listener\ServiceListener to allow modules to provide
validator configuration.### Added - #18 adds a GpsPoint validator for validating GPS coordinates. - #47 adds two new classes, Zend\Validator\Isbn\Isbn10 and Isbn13; these cla
GpsPoint
validator for validating GPS coordinates.Zend\Validator\Isbn\Isbn10 and Isbn13; these classes are the
result of an extract class refactoring, and contain the logic specific to
calcualting the checksum for each ISBN style. Zend\Validator\Isbn now
instantiates the appropriate one and invokes it.Zend\Validator\Db\AbstractDb to implement Zend\Db\Adapter\AdapterAwareInterface,
by composing Zend\Db\Adapter\AdapterAwareTrait.safe_mode within the MimeType validator, as safe_mode became
obsolete starting with PHP 5.4.Updates the hostname validator regexes per the canonical service on which they are based.
NOT_GREATER_INCLUSIVE validation error message.Barcode validator to cast empty options passed to the constructor to an
empty array, fixing type mismatch errors.Hostname validator to ensure that IPv6 is detected
correctly.IP validator when comparing ipv4 addresses to ensure a
literal . is tested between network segments.### Added - #30 adds tooling to ensure that the Hostname TLD list stays up-to-date as changes are pushed for the repository. ### Deprecated - Nothing.
StaticValidator such that they make correct assertions now. In doing so, we
determined that it was possible to pass an indexed array of options, which
could lead to unexpected results, often leading to false positives when
validating. To correct this situation, StaticValidator::execute() now raises
an InvalidArgumentException when an indexed array is detected for the
$options argument.NotEmpty validator to no longer treat the float 0.0 as an empty value for
purposes of validation.Date validator to check against DateTimeImmutable and not
DateTimeInterface (as PHP has restrictions currently on how the latter can
be used).### Added - #8 adds a "strict" configuration option; when enabled (the default), the length of the address is checked to ensure it follows the specifi
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →