PHPackages                             taobig/php-filter - 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. taobig/php-filter

ActiveLibrary

taobig/php-filter
=================

A type validate &amp; filter plugin for PHP projects

v0.3.0(3y ago)0987MITPHPPHP ^7.0 || ^8.0CI failing

Since May 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/taobig/php-filter)[ Packagist](https://packagist.org/packages/taobig/php-filter)[ Docs](https://github.com/taobig/php-filter)[ RSS](/packages/taobig-php-filter/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

This project has been abandoned.
================================

[](#this-project-has-been-abandoned)

php-filter
==========

[](#php-filter)

A type validate &amp; filter plugin for PHP projects

[![Latest Stable Version](https://camo.githubusercontent.com/983ba7a70f7815af5fbe4291fd043d3dd12c99dd980e901e31d09a51000c0658/68747470733a2f2f706f7365722e707567782e6f72672f74616f6269672f7068702d66696c7465722f762f737461626c65)](https://packagist.org/packages/taobig/php-filter)[![Latest Unstable Version](https://camo.githubusercontent.com/7dd3b172a4f05360b0c2e236a9d87c8da6c5893301b19c5f8112da985bcb5f7b/68747470733a2f2f706f7365722e707567782e6f72672f74616f6269672f7068702d66696c7465722f762f756e737461626c65)](https://packagist.org/packages/taobig/php-filter)[![Total Downloads](https://camo.githubusercontent.com/1e8a9f3ab86ab60fc3714b30807174825c178143fe4c4797010b7c7ddf26df67/68747470733a2f2f706f7365722e707567782e6f72672f74616f6269672f7068702d66696c7465722f646f776e6c6f616473)](https://packagist.org/packages/taobig/php-filter)[![License](https://camo.githubusercontent.com/6a5336646d83c657dc81e2c6a583946e93efad9453b775f11448ad51a636c7c9/68747470733a2f2f706f7365722e707567782e6f72672f74616f6269672f7068702d66696c7465722f6c6963656e7365)](https://packagist.org/packages/taobig/php-filter)[![Build Status](https://camo.githubusercontent.com/a754a51817c44d2249ccf44aa351d66c4998071c770f1fd07c39073f6ce015c7/68747470733a2f2f7472617669732d63692e6f72672f74616f6269672f7068702d66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/taobig/php-filter)[![Coverage Status](https://camo.githubusercontent.com/39f84aa4c05398b0da9e1b7b24f2aa4464627c271542ce11513bb2867a4372c2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74616f6269672f7068702d66696c7465722f62616467652e737667)](https://coveralls.io/github/taobig/php-filter)

### INSTALLATION

[](#installation)

**Install via Composer**
If you do not have Composer, you may install it refer to [getcomposer.org](https://getcomposer.org/download/).

You can then install this project template using the following command:

```
php composer.phar require taobig/php-filter

```

Usage
-----

[](#usage)

```
use taobig\filter\filters\TypeValidator;
TypeValidator::isString("hello world");//return true
TypeValidator::isString(1111.32333, false);//return true
TypeValidator::isInt(1111);//return true
TypeValidator::isInt("1111", false);//return true
TypeValidator::isIntList([1111]);//return true
TypeValidator::isIntList(["1111"], false);//return true
TypeValidator::isStringList(["1111"]);//return true
TypeValidator::isStringList([1111], false);//return true

$filter = new taobig\filter\filters\TypeFilter(['exceptionMessage'=>'parameters type error']);
$filter->stringVal("hello world");//return "hello world"
$filter->stringVal(1111.32333, false);//return "1111.32333"
$filter->intVal("1111", false);//return 1111

use taobig\filter\filters\MobileValidator;
TypeValidator::isChineseMobile("13800001111");//return true

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~167 days

Recently: every ~395 days

Total

12

Last Release

1435d ago

PHP version history (2 changes)v0.0.1PHP ^7.0

v0.2.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f5f99aee05a896d794554f2a0bc964a306d96b7541e6e14cc5ac6969e45acf0?d=identicon)[taobig](/maintainers/taobig)

---

Top Contributors

[![taobig](https://avatars.githubusercontent.com/u/4549922?v=4)](https://github.com/taobig "taobig (48 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taobig-php-filter/health.svg)

```
[![Health](https://phpackages.com/badges/taobig-php-filter/health.svg)](https://phpackages.com/packages/taobig-php-filter)
```

PHPackages © 2026

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