All Projects → azeemhassni → envalid

azeemhassni / envalid

Licence: MIT license
Envalid is a framework agnostic and fluent server side form validation package for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to envalid

Redux Form
A Higher Order Component using react-redux to keep form state in a Redux store
Stars: ✭ 12,597 (+54669.57%)
Mutual labels:  form-validation
Angular Validation Match
Checks if one input matches another. Useful for confirming passwords, emails, or anything.
Stars: ✭ 228 (+891.3%)
Mutual labels:  form-validation
FrontendForms
A module for ProcessWire CMS to create and validate forms on the frontend easily using the Valitron library.
Stars: ✭ 0 (-100%)
Mutual labels:  form-validation
Material Singleinputform
A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform
Stars: ✭ 202 (+778.26%)
Mutual labels:  form-validation
Resolvers
📋 Validation resolvers: Zod, Yup, Joi, Superstruct, and Vest.
Stars: ✭ 222 (+865.22%)
Mutual labels:  form-validation
Form bloc
🔥 Dart and Flutter Package 🔥 Easy Form State Management using BLoC pattern 🔥 Wizard/stepper forms, asynchronous validation, dynamic and conditional fields, submission progress, serialization and more! 🔥
Stars: ✭ 239 (+939.13%)
Mutual labels:  form-validation
Availity Reactstrap Validation
Easy to use React validation components compatible for reactstrap.
Stars: ✭ 176 (+665.22%)
Mutual labels:  form-validation
ATGValidator
iOS validation framework with form validation support
Stars: ✭ 51 (+121.74%)
Mutual labels:  form-validation
Validate
A lightweight form validation script.
Stars: ✭ 227 (+886.96%)
Mutual labels:  form-validation
laminas-form
Validate and display simple and complex forms, casting forms to business objects and vice versa
Stars: ✭ 65 (+182.61%)
Mutual labels:  form-validation
Documentation
📋 Official documentation/website
Stars: ✭ 202 (+778.26%)
Mutual labels:  form-validation
Bouncer
A lightweight form validation script that augments native HTML5 form validation elements and attributes.
Stars: ✭ 224 (+873.91%)
Mutual labels:  form-validation
Final Form
🏁 Framework agnostic, high performance, subscription-based form state management
Stars: ✭ 2,787 (+12017.39%)
Mutual labels:  form-validation
Elm Form
Dynamic forms handling in Elm
Stars: ✭ 189 (+721.74%)
Mutual labels:  form-validation
Frontend-Learning-Journey
Tutorials, definitions, frameworks and some of the projects i made when starting to learn frontend web developement
Stars: ✭ 28 (+21.74%)
Mutual labels:  form-validation
Composable Form
Build type-safe composable forms in Elm
Stars: ✭ 179 (+678.26%)
Mutual labels:  form-validation
Svelte Forms Lib
📝. A lightweight library for managing forms in Svelte
Stars: ✭ 238 (+934.78%)
Mutual labels:  form-validation
recaptcha2
Easy verifier for google reCAPTCHA version 2 for Node.js and Express.js
Stars: ✭ 48 (+108.7%)
Mutual labels:  form-validation
react-inputs-validation
A react component for form inputs validation. Online demo examples
Stars: ✭ 48 (+108.7%)
Mutual labels:  form-validation
formz
A unified form representation in Dart used at Very Good Ventures 🦄
Stars: ✭ 262 (+1039.13%)
Mutual labels:  form-validation

Envalid

Envalid is a framework agnostic and fluent server side form validation package for PHP

Build Status

Documentation

Installation

Envalid can be installed via composer just execute the following command in your project root

composer require azi/envalid

Or add the following in your composer.json file and run composer install

"require": {
    "azi/envalid": "^1.0"
}

Usage

Using envalid in your project is super simple, here is an example

$validator = new azi\Validator();
$validator->validate($_POST, [
    'username'         => 'required',
    'password'         => 'required|password:strong',
    'confirm_password' => 'required|same:password'
]);

If you've files to validate you will need to merge $_POST|$_GET and with $_FILES just like the following

$validator = new azi\Validator();
$validator->validate(array_merge($_POST, $_FILES), [
    'profile_picture' => 'file:image'
]);

Available Rules

  • required
  • email
  • password Accepts password strength like password:strong|medium|normal (default noraml)
  • number
  • file Accepts file type currently supported formats: image,video,doc
  • min
  • max
  • length
  • array
  • boolean
  • ip
  • same
  • alpha
  • alnum

Contributions

This repository is maintained by @azeemhassni

If you can contribute I'd love to merge your PR and your name will be mentioned in the release notes and contributors list.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].