Download the PHP package kris-kuiper/validator without Composer

On this page you can find all versions of the php package kris-kuiper/validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package validator

Modern PHP Validator - Standalone Validation on Steroids

Latest Stable Version License PHP Version Require codecov

Introduction

Validating incoming data or array's (i.e. POST data) should not be hard. Meet Modern PHP Validator which does the trick nice, clean and easy.

Here are a couple of the many perks:

Modern PHP Validator provides several approaches to validate your application's (incoming) data. It makes it a breeze to validate form submit values as combining multiple input for single validation. It supports middleware and custom validation rules and error messages. It will also return the validated data to insert the data into i.e. a database.

Installation

Modern PHP Validator is available on Packagist (using semantic versioning). Installation via Composer is the recommended way.

Run:

Or add this line to your composer.json file:

Documentation

All documentation can be found in the docs folder.

Index:

Validation rules

Below is a list with all predefined validation rules.

Accepted Date Is empty Prohibits
Accepted if DateBetween Is false Regex
Accepted not empty Declined Is int Required
Active URL Declined if Is not null Required array keys (array)
After (date) Declined not empty Is null Required with
After or equal (date) Different Is string Required with all
Alpha Different with all Is true Required without
Alpha dash Digits Json Required without all
Alpha numeric Digits between Length Same
Alpha space Digits max Length between Same not
Before (date) Digits min Length max Scalar
Before or equal (date) Distinct Length min Starts not with
Between Divisible by Lowercase Starts with
CSS Color Email MAC address Time zone
Confirmed Ends not with Max Uppercase
Contains Ends with Min URL
Contains letter Equals Negative UUID
Contains mixed case Hexadecimal Negative or zero UUID v1
Contains not In Not in UUID v3
Contains number IP Nullable UUID v4
Contains symbol IP private Number UUID v5
Count (array) IP public Positive Words
Countable (array) IP v4 Positive or zero Words max
Count between (array) IP v6 Present Words min
Count max (array) Is array Prohibited
Count min (array) Is bool Prohibited if

Head first example:

And this is just the beginning... Check out the docs for lots of more validation goodies.

License

Modern PHP Validator is open-sourced software licensed under the MIT license.


All versions of validator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kris-kuiper/validator contains the following files

Loading the files please wait ....