Download the PHP package wookieb/type-check without Composer
On this page you can find all versions of the php package wookieb/type-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wookieb/type-check
More information about wookieb/type-check
Files in wookieb/type-check
Download wookieb/type-check
More information about wookieb/type-check
Files in wookieb/type-check
Vendor wookieb
Package type-check
Short Description Object oriented way to check the type of data
License MIT
Package type-check
Short Description Object oriented way to check the type of data
License MIT
Please rate this library. Is it a good library?
Informations about the package type-check
Type check
Provide objects oriented and more abstract way to check the type of data.
Note! This library it's not a replacement for functions is_* and other type check functions!
Use cases
- type constraints for validators
- definition of type for containers, maps https://github.com/wookieb/map
Install
Via composer
Usage
Memory usage
You don't need to always create objects of SimpleTypeCheck for common data types. Instead you can use an singleton instance for each basic type.
Other type checks
TraversableOf
Allows to check the type of traversable (arrays or instances of \Traversable interface) elements
CallbackTypeCheck
Uses callback as validation function
AllChecks
Value must pass all defined type check
Changelog
0.2
- added AllChecks, CallbackTypeCheck, TraversableOf
All versions of type-check with dependencies
PHP Build Version
Package Version
Requires
wookieb/assert Version
0.*
The package wookieb/type-check contains the following files
Loading the files please wait ....