Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned. Use laminas/laminas-validator instead.
Generated on May 17, 2024 via composer

zendframework/zend-validator 2.13.0

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria
Package summary
Share
3
issues
3
high severity
meta
3
2
licenses
2
MIT
2
BSD-3-Clause
Package created
7 Feb 2013
Version published
28 Dec 2019
Maintainers
1
Total deps
4
Direct deps
2
License
BSD-3-Clause

Issues

3

3 high severity issues

high
via: container-interop/container-interop@1.2.0
via: zendframework/zend-stdlib@3.2.1
via: zendframework/zend-validator@2.13.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
container-interop/container-interop@1.2.0
psr/container@1.1.2

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
zendframework/zend-stdlib@3.2.1
zendframework/zend-validator@2.13.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of zendframework/zend-validator 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
container-interop/container-interop1.2.072.25 kBMIT
prod
1
zendframework/zend-stdlib3.2.152.72 kBBSD-3-Clause
prod
1

Visualizations

Frequently Asked Questions

What does zendframework/zend-validator do?

Zendframework/zend-validator is a package that offers a set of commonly needed validators. This package not only provides validation tools for a wide range of domains, but it also elegantly handles the ability to chain multiple validators together. This chaining mechanism allows you to apply a number of validators to a single datum in a specific order as defined by the user.

How do you use zendframework/zend-validator?

To make use of the zendframework/zend-validator in your PHP project, you first need to install this library into your environment. This can be accomplished using the Composer dependency management tool by running the following command in your terminal:

$ composer require zendframework/zend-validator

Once the package has been installed, you can call upon it within your PHP code. An example of its usage can be as follows:

<?php
require 'vendor/autoload.php';
$validator = new Zend\Validator\EmailAddress();
if ($validator->isValid($email)) {
    // email appears to be valid
} else {
    // email is invalid; print the reasons
    foreach ($validator->getMessages() as $message) {
        echo "$message\n";
    }
}

This example illustrates how you can utilize the EmailAddress validator to check whether a provided email address is valid or not.

Where are the zendframework/zend-validator docs?

The comprehensive documentation for the zendframework/zend-validator can be found online at https://docs.zendframework.com/zend-validator/. This resource is quite valuable, and it provides detailed information on the different validators provided, the chaining mechanism, as well as how to extend the functionality of the package to suit your needs.