Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Zend Validator Laravel Package

zendframework/zend-validator

Powerful validation library from Zend Framework for PHP apps. Provides a wide range of reusable validators, input filtering, and custom rule support with clear error messages. Integrates easily into forms and domain validation workflows.

View on GitHub
Deep Wiki
Context7

GreaterThan Validator

Zend\Validator\GreaterThan allows you to validate if a given value is greater than a minimum border value.

Only supports numbers

Zend\Validator\GreaterThan supports only the validation of numbers. Strings or dates can not be validated with this validator.

Supported options

The following options are supported for Zend\Validator\GreaterThan:

  • inclusive: Defines if the validation is inclusive of the minimum value, or exclusive. It defaults to false.
  • min: Sets the minimum allowed value.

Basic usage

To validate if a given value is greater than a defined minimum:

$valid  = new Zend\Validator\GreaterThan(['min' => 10]);
$value  = 8;
$return = $valid->isValid($value);
// returns false

The above example returns true for all values which are greater than 10.

Inclusive validation

Sometimes it is useful to validate a value by including the minimum value.

$valid  = new Zend\Validator\GreaterThan([
    'min' => 10,
    'inclusive' => true,
]);
$value  = 10;
$result = $valid->isValid($value);
// returns true

The example is identical to our first example, with the exception that we included the minimum value. Now the value '10' is allowed and will return true.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport