PHPackages                             mitchellston/form\_validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. mitchellston/form\_validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

mitchellston/form\_validation
=============================

This should help with validating POST and GET request in PHP!

1.0(3y ago)110MITPHPPHP &gt;=7.4

Since Nov 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mitchellston/form_validation)[ Packagist](https://packagist.org/packages/mitchellston/form_validation)[ RSS](/packages/mitchellston-form-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Form validation
===============

[](#form-validation)

This project aims to make validation for POST and GET requests easier. The way we get this done is by making the way validation work similar to the input tag of HTML.

Getting Started
---------------

[](#getting-started)

These instructions will give you a working project with this library.

### Prerequisites

[](#prerequisites)

Requirements for the software and other tools to build, test and push

- PHP 7.4 or higher
- Composer

### Installing

[](#installing)

A step by step series of examples that tell you how to get a development environment running.

Start a composer project

```
Composer init

```

Install the library with composer

```
Composer require mitchellston/form_validation

```

Add the library to the composers autoloader (in composer.json)

```
{
  "autoload": {
    "classmap": [
      "./vendor/mitchellston/"
    ]
  }
}
```

Update composer autoloader

```
Composer update

```

### Demo

[](#demo)

```
