PHPackages                             fingermessenger/formvalidation - 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. fingermessenger/formvalidation

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

fingermessenger/formvalidation
==============================

v1.1(7y ago)113MITPHPPHP &gt;=7.0

Since Dec 20Pushed 7y agoCompare

[ Source](https://github.com/FingerMessenger/PHP-LIb-FormValidation)[ Packagist](https://packagist.org/packages/fingermessenger/formvalidation)[ RSS](/packages/fingermessenger-formvalidation/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Install
-------

[](#install)

```
composer require fingermessenger/formvalidation

```

Usage
-----

[](#usage)

```
use FingerMessenger\FormValidation;
```

Example
-------

[](#example)

```
class FormController
{
    use FormValidation;

    public function myFilter($data)
    {
        return substr($data, 0, 20);
    }

    public function checkData($data)
    {
        if (is_string($data)) {
            return true;
        }
        return false;
    }

    public function run()
    {
        $data = array(
            "title" => " jfilsk93808ii4okemg9fk "
        );

        $rules = array(
            "title" => array(
                "filter" => array("filterTrim", "myFilter"),
                "rules"  => array(
                    array("type" => "isNotNull", "msg" => "title is null"),
                    array("type" => "isEmail", "msg" => "title is not email"),
                    array("type" => "isUrl", "msg" => "title is not url"),
                    array("type" => "isChineseCharacter", "msg" => "title is not chinese"),
                    array("type" => "isInvalidStr", "msg" => "title is not invalid"),
                    array("type" => "isPostNum", "msg" => "title is not post num"),
                    array("type" => "isPersonalCard", "msg" => "title is not personal card"),
                    array("type" => "isIPv4", "msg" => "title is not ipv4"),
                    array("type" => "isMobile", "msg" => "title is not mobile num"),
                    array("type" => "isLength", "param" => array(6, 30), "msg" => "title length must betwen 6 and 30"),
                    array("type" => "checkData", "msg" => "title is not string"),
                )
            )
        );

        if (!$this->validationRun()) {
            echo $this->getValidationError();
        }
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~30 days

Total

2

Last Release

2672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd1def2ff4471cf7640669c114f693933b1da07bb191715e6872fc499567e41b?d=identicon)[FingerMessenger](/maintainers/FingerMessenger)

---

Top Contributors

[![FingerMessenger](https://avatars.githubusercontent.com/u/25274164?v=4)](https://github.com/FingerMessenger "FingerMessenger (11 commits)")

### Embed Badge

![Health badge](/badges/fingermessenger-formvalidation/health.svg)

```
[![Health](https://phpackages.com/badges/fingermessenger-formvalidation/health.svg)](https://phpackages.com/packages/fingermessenger-formvalidation)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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