Built-In Validators
Centum\Validator\Alpha
Checks if a value is an alphabetic string (no numbers, spaces, or punctuation).
Centum\Validator\Alphanumeric
Checks if a value is an alphanumeric string.
Centum\Validator\Base64
Checks if a value is is a valid base64 string.
Centum\Validator\Callback
Checks if a value against a callback function. Allows custom Validators to be wrapped within a callable.
Centum\Validator\CommandSlug
Checks if a value is a Command slug (i.e. all lowercase, alphanumeric with dashes and colons, starting and ending with a letter or number).
This differs from Centum\Validator\Slug
in that colons are also allowed.
Centum\Validator\EmailAddress
Checks if a value is a valid email address.
Centum\Validator\InArray
Checks if a value is in an array of values.
Centum\Validator\LanguageCode
Checks if a value is a valid ISO language code.
Centum\Validator\NotEmpty
Checks if a value is not empty.
Centum\Validator\NotInArray
Checks if a value is not in an array of values.
Centum\Validator\RegularExpression
Checks if a value is matches a regular expression.
Centum\Validator\Slug
Checks if a value is a slug (i.e. all lowercase, alphanumeric with dashes, starting and ending with a letter or number).
Centum\Validator\TimeZone
Checks if a value is a valid time zone identifier.
Centum\Validator\Type\IsA
Checks if a value is an instance of a particular class.
Centum\Validator\Type\IsArray
Checks if a value is an array.
Centum\Validator\Type\IsBoolean
Checks if a value is a boolean.
Centum\Validator\Type\IsCallable
Checks if a value is a callable.
Centum\Validator\Type\IsCharacter
Checks if a value is a single character.
Centum\Validator\Type\IsCountable
Checks if a value is countable.
Centum\Validator\Type\IsInstanceOf
Checks if a value is an instance of a particular object.
Centum\Validator\Type\IsInteger
Checks if a value is an integer or an integer string.
Centum\Validator\Type\IsIterable
Checks if a value is iterable.
Centum\Validator\Type\IsNull
Checks if a value is null
.
Centum\Validator\Type\IsObject
Checks if a value is an object.
Centum\Validator\Type\IsResource
Checks if a value is a resource.
Centum\Validator\Type\IsScalar
Checks if a value is a scalar.
Centum\Validator\Type\IsString
Checks if a value is a string.
Centum\Validator\ZipCode
Checks if a value is a valid US zip code (either in the form of 12345 or 12345-6789).