PHPackages                             edtsz/f3-form-validator - 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. edtsz/f3-form-validator

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

edtsz/f3-form-validator
=======================

Form validator for FatFreeFramework based on CodeIgniter Form Validation library

1.1.1(9y ago)11851GPL-3.0+PHPPHP ^5.5 || ^7.0

Since Feb 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/edtsz/f3-form-validator)[ Packagist](https://packagist.org/packages/edtsz/f3-form-validator)[ Docs](https://github.com/edtsz/f3-form-validator)[ RSS](/packages/edtsz-f3-form-validator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Fat-Free Framework Form Validator
=================================

[](#fat-free-framework-form-validator)

This is a [CodeIgniter's](https://codeigniter.com/) ([GitHub](https://github.com/bcit-ci/CodeIgniter)) [Form Validation](https://github.com/bcit-ci/CodeIgniter/blob/3.1-stable/system/libraries/Form_validation.php) ported to [FatFreeFramework](https://fatfreeframework.com/) ([GitHub](https://github.com/bcosca/fatfree))

Getting Start
=============

[](#getting-start)

Install
-------

[](#install)

Add the following to your composer.json file:

```
{
    "require": {
        "edtsz/f3-form-validator": "1.0.0"
    }
}
```

Then open the terminal in your project directory and run: `composer install`

Running
-------

[](#running)

```
$validator = new \Validator();
$validator->set_db( $f3->get('db.instance') ); // just if will use "is_unique"
$validator->set_rules(
	'username', 'Username',
	'required|min_length[5]|max_length[12]|is_unique[users.username]',
	array(
		'required'  => 'You have not provided %s.',
		'is_unique' => 'This %s already exists.'
	)
);
$validator->set_rules('password', 'Password',              'required');
$validator->set_rules('passconf', 'Password Confirmation', 'required|matches[password]');
$validator->set_rules('email',    'Email',                 'required|valid_email|is_unique[users.email]');

if ( $validator->run() === TRUE )
{
	// success
}
else
{
	print_r( $validator->error_array() );
}
```

*Full information about how to use it: [CI Docs](https://codeigniter.com/user_guide/libraries/form_validation.html)*

Available Validators|Filters
============================

[](#available-validatorsfilters)

[CodeIgniter](https://codeigniter.com/user_guide/libraries/form_validation.html)
--------------------------------------------------------------------------------

[](#codeigniter)

- required
- regex\_match
- matches
- differs
- is\_unique
- min\_length
- max\_length
- exact\_length
- valid\_url
- valid\_email
- valid\_emails
- valid\_ip
- alpha
- alpha\_numeric
- alpha\_numeric\_spaces
- alpha\_dash
- numeric
- integer
- decimal
- greater\_than
- greater\_than\_equal\_to
- less\_than
- less\_than\_equal\_to
- in\_list
- is\_natural
- is\_natural\_no\_zero
- valid\_base64
- prep\_for\_form
- prep\_url
- strip\_image\_tags
- encode\_php\_tags

[GUMP](https://github.com/Wixel/GUMP)
-------------------------------------

[](#gump)

- min\_age
- max\_age
- valid\_name

Custom
------

[](#custom)

- is\_file
- file\_min\_size
- file\_max\_size
- file\_types
- valid\_cpf
- valid\_date
- valid\_datetime
- valid\_time
- convert\_case
- substr

As [CI Docs](https://codeigniter.com/user_guide/libraries/form_validation.html) says: *"You can also use any native PHP functions that permit up to two parameters, where at least one is required (to pass the field data)."*

Sources
=======

[](#sources)

- [CodeIgniter Form Validation](https://github.com/bcit-ci/CodeIgniter/blob/3.1-stable/system/libraries/Form_validation.php)
- [GUMP](https://github.com/Wixel/GUMP)

TODO
====

[](#todo)

- Improve documentation
- Examples
- Tests

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3419d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3809579?v=4)[Éderson T. Szlachta](/maintainers/edtsz)[@edtsz](https://github.com/edtsz)

---

Top Contributors

[![edtsz](https://avatars.githubusercontent.com/u/3809579?v=4)](https://github.com/edtsz "edtsz (2 commits)")[![nimah79](https://avatars.githubusercontent.com/u/20343056?v=4)](https://github.com/nimah79 "nimah79 (1 commits)")

---

Tags

validatorvalidationform

### Embed Badge

![Health badge](/badges/edtsz-f3-form-validator/health.svg)

```
[![Health](https://phpackages.com/badges/edtsz-f3-form-validator/health.svg)](https://phpackages.com/packages/edtsz-f3-form-validator)
```

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M50](/packages/proengsoft-laravel-jsvalidation)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.4M](/packages/barbieswimcrew-zip-code-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
