PHPackages                             bozworks/bouncer.php - 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. [Search &amp; Filtering](/categories/search)
4. /
5. bozworks/bouncer.php

ActiveLibrary[Search &amp; Filtering](/categories/search)

bozworks/bouncer.php
====================

🖐️ Bouncer is a library that allows you to flexible, quickly and easy to use filter and validate HTML forms.

v1.0.0(4y ago)251[2 issues](https://github.com/bozworks/bouncer.php/issues)mitPHPPHP &gt;=5.5.0

Since Jun 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bozworks/bouncer.php)[ Packagist](https://packagist.org/packages/bozworks/bouncer.php)[ RSS](/packages/bozworks-bouncerphp/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Bouncer.php
===========

[](#bouncerphp)

**Bouncer** is a library that allows you to flexible, quickly and easy to use filter and validate HTML forms.

[Examples](../../tree/master/examples) · [Open issue](../../issues/new/choose) · [Report bug](../../issues/new?assignees=&labels=&template=bug_report.md&title=)

Table of contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Quick start](#quick-start)
- [API](/API.md)
- [License](#license)
- [Changelog](/CHANGELOG.md)
- [Release notes](#release-notes)
- [Future release plans](#future-release-plans)
- [Known questions](#known-questions)
- [Credits](#credits)

Features
--------

[](#features)

- 👍 It is very easy to use and does not require any dependency.
- 🎭 The entire form can be validate at the same time or optionally particular fields can also be validate.
- 🎯 You do not need to check the validity of each field separately. Bouncer keeps track of the validity of the entire form for you.
- 🛠️ It has predefined error messages for each validation method and these messages can be changed from the options.
- ✔️ You can create custom validation and filter methods for each field.
- 📋 You can define custom error messages for each field.
- 📌 Supports error messages (value, parameters, field label if predefined and rule title) variables.
- 📐 Includes more than 30 different built-in methods for validation and filtering.
- ♻️ It has the ability to automatically add form data submitted with `$_POST` and `$_GET` requests. Thus, you do not need to define the form fields one by one.
- 💲 It is completely free to use and open source.

[↑ Return to top](#bouncerphp)

Quick start
-----------

[](#quick-start)

Bouncer can be used either with or without Composer.

### With Composer

[](#with-composer)

The preferred way to use Bouncer is with Composer. Execute the following command to install this package as a dependency in your project:

```
composer require bozworks/bouncer.php
```

```
