Download the PHP package mousav1/validify without Composer
On this page you can find all versions of the php package mousav1/validify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mousav1/validify
More information about mousav1/validify
Files in mousav1/validify
Download mousav1/validify
More information about mousav1/validify
Files in mousav1/validify
Vendor mousav1
Package validify
Short Description Validify is a powerful PHP validation library that provides flexible and customizable validation rules, error handling, and pre-validation callbacks.
License MIT
Package validify
Short Description Validify is a powerful PHP validation library that provides flexible and customizable validation rules, error handling, and pre-validation callbacks.
License MIT
Please rate this library. Is it a good library?
Informations about the package validify
Validify
Introduction
Validify is a simple, extensible, and flexible validation library for PHP. It allows developers to define validation rules for their data inputs and easily validate them. This package provides a set of built-in rules and also supports custom validation rules.
Features
- Simple API: Easy-to-use API for defining validation rules.
- Customizable: Allows the addition of custom validation rules.
- Wildcard Support: Supports validation of nested data structures using dot notation.
- Pre-Validation Callbacks: Supports execution of custom logic before validation.
- Conditional Validation: Apply validation rules based on dynamic conditions.
- Date and Time Validation: Validate date and time fields with built-in rules.
- Flexible Rule Definitions: Support for both array and string formats for defining rules.
Installation
You can install the package via Composer:
Usage
Basic Validation
Fluent Validation
The Validify package allows you to define rules using a fluent interface, making your validation logic more readable:
Custom Validation Rules
You can extend the validator with custom rules:
Conditional Validation
Conditional validation allows you to apply validation rules to certain fields only when specific conditions are met. This feature is useful when you want to validate fields based on the values of other fields or dynamic conditions.
Date and Time Validation
The Validify package includes rules for validating date and time fields. You can use these rules to ensure that your date and time inputs meet specific criteria.
Date Format
After Rule
Before Rule
Custom Error Messages
You can define custom error messages for specific fields and rules:
Field Aliases
You can set aliases for field names to provide user-friendly error messages:
Pre-Validation Callbacks
You can define callbacks that will run before the validation process starts:
Available Rules
- required
- min
- max
- numeric
- confirmed
- url
- in
- between
- regex
- alpha
- optional
- required_with
All versions of validify with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package mousav1/validify contains the following files
Loading the files please wait ....