Download the PHP package bozworks/bouncer.php without Composer
On this page you can find all versions of the php package bozworks/bouncer.php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bouncer.php
Bouncer.php
Bouncer is a library that allows you to flexible, quickly and easy to use filter and validate HTML forms.
Report bug
Table of contents
- Features
- Quick start
- API
- License
- Changelog
- Release notes
- Future release plans
- Known questions
- Credits
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
Quick start
Bouncer can be used either with or without 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:
Without Composer
Bouncer does not have any dependencies. Therefore, you can download and include it directly in your file and start using it:
Simple example
In the example below, let's basically verify a user's session information with Bouncer.
You can find a complete guide example in the examples folder.
↑ Return to top
License
Bouncer's code is released under the Creative Commons. (MIT AND CC-BY-4.0)
↑ Return to top
Release notes
- Automatically print the error messages based on the field.
- Added some improvements and examples.
See the change log.
↑ Return to top
Future release plans
- Multiple rule support.
- New methods "contains" and "notcontains".
See the change log.
↑ Return to top
Known questions
Can more than one rule be defined?
- Yes Bouncer is capable of handling multiple rules.
Can more than one custom callbacks be defined?
- Yes Bouncer is capable of handling multiple callbacks.
Can it be defined more than one from the same validation rule?
- No, for now it can only be defined once from the same rule. Bouncer is planned to have this ability in the future.
↑ Return to top
Credits
This repository is inspired by bouncer.js
Get the JavaScript version developed by @cferdinandi. Bouncer.js
↑ Return to top