PHPackages                             wixel/gump - 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. wixel/gump

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

wixel/gump
==========

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

v2.3.2(7mo ago)1.2k1.4M↓38.5%332[4 issues](https://github.com/Wixel/GUMP/issues)[4 PRs](https://github.com/Wixel/GUMP/pulls)20MITPHPPHP &gt;=7.1CI passing

Since Jun 10Pushed 1mo ago79 watchersCompare

[ Source](https://github.com/Wixel/GUMP)[ Packagist](https://packagist.org/packages/wixel/gump)[ RSS](/packages/wixel-gump/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (7)Versions (45)Used By (20)

GUMP - A Fast PHP Data Validation &amp; Filtering Library
=========================================================

[](#gump---a-fast-php-data-validation--filtering-library)

[![Total Downloads](https://camo.githubusercontent.com/37408f1d6ddbecfc0f737b9ddf0b9a33015a614eaee45f461e638a03d8873551/68747470733a2f2f706f7365722e707567782e6f72672f776978656c2f67756d702f646f776e6c6f616473)](https://packagist.org/packages/wixel/gump)[![Latest Stable Version](https://camo.githubusercontent.com/97738b1704250223bb298fedc82cefd8f0f088468c3de259e8bea614f9982f23/68747470733a2f2f706f7365722e707567782e6f72672f776978656c2f67756d702f762f737461626c65)](https://packagist.org/packages/wixel/gump)[![Build Status](https://github.com/wixel/gump/actions/workflows/ci.yml/badge.svg)](https://github.com/wixel/gump/actions/workflows/ci.yml/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/99d6595f625d6e53278f8442d3d5b8688ba0ee6be751009a5c0954a9c234e1f5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f576978656c2f47554d502f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Wixel/GUMP?branch=master)[![License](https://camo.githubusercontent.com/fc7895d8c6a9df22902abafa76ed8e1e1f3051240a25efdb8d3a552dc13c8b72/68747470733a2f2f706f7365722e707567782e6f72672f776978656c2f67756d702f6c6963656e7365)](https://packagist.org/packages/wixel/gump)

Overview
--------

[](#overview)

GUMP is a standalone PHP data validation and filtering library that makes validating any data easy and painless without the reliance on a framework. GUMP has been serving the PHP community since **2013** and is trusted by thousands of developers worldwide.

### Key Features

[](#key-features)

- **Zero Dependencies** - Pure PHP, no external dependencies required
- **19 Languages** - Built-in internationalization support
- **High Performance** - Lightweight and fast validation processing
- **Extensible** - Easy to add custom validators and filters
- **76 Validators** - Comprehensive set of validation rules out of the box
- **Security Focused** - Built-in XSS protection and data sanitization
- **Framework Agnostic** - Works with any PHP project or framework
- **Modern PHP** - Supports PHP 7.1 to 8.4+

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start](#quick-start)
- [Usage Examples](#usage-examples)
- [Available Validators](#available-validators)
- [Available Filters](#available-filters)
- [Advanced Usage](#advanced-usage)
- [Internationalization](#internationalization)
- [Custom Validators &amp; Filters](#custom-validators--filters)
- [Configuration](#configuration)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Support](#support)
- [License](#license)

Installation
------------

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require wixel/gump
```

### Manual Installation

[](#manual-installation)

1. Download the latest release from [GitHub Releases](https://github.com/wixel/gump/releases)
2. Extract and include `gump.class.php` in your project:

```
require_once 'path/to/gump.class.php';
```

Requirements
------------

[](#requirements)

- **PHP**: 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4+
- **Extensions**:
    - `ext-mbstring` - Multibyte string support
    - `ext-json` - JSON processing
    - `ext-intl` - Internationalization functions
    - `ext-bcmath` - Arbitrary precision mathematics
    - `ext-iconv` - Character encoding conversion

Quick Start
-----------

[](#quick-start)

### Simple Validation

[](#simple-validation)

```
