Download the PHP package taobig/php-filter without Composer
On this page you can find all versions of the php package taobig/php-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download taobig/php-filter
More information about taobig/php-filter
Files in taobig/php-filter
Download taobig/php-filter
More information about taobig/php-filter
Files in taobig/php-filter
Vendor taobig
Package php-filter
Short Description A type validate & filter plugin for PHP projects
License MIT
Homepage https://github.com/taobig/php-filter
Package php-filter
Short Description A type validate & filter plugin for PHP projects
License MIT
Homepage https://github.com/taobig/php-filter
Please rate this library. Is it a good library?
Informations about the package php-filter
This project has been abandoned.
php-filter
A type validate & filter plugin for PHP projects
INSTALLATION
Install via Composer
If you do not have Composer, you may install it refer to getcomposer.org.
You can then install this project template using the following command:
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
All versions of php-filter with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0 || ^8.0
The package taobig/php-filter contains the following files
Loading the files please wait ....