Download the PHP package sbwerewolf/language-specific without Composer
On this page you can find all versions of the php package sbwerewolf/language-specific. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sbwerewolf/language-specific
More information about sbwerewolf/language-specific
Files in sbwerewolf/language-specific
Download sbwerewolf/language-specific
More information about sbwerewolf/language-specific
Files in sbwerewolf/language-specific
Vendor sbwerewolf
Package language-specific
Short Description Library for using PHP specific features
License MIT
Package language-specific
Short Description Library for using PHP specific features
License MIT
Please rate this library. Is it a good library?
Informations about the package language-specific
How to install
Features
ArrayHandler with ValueHandler are purpose to safe access to array elements and type-safe using of elements values
With ArrayHandler class you do not need to use
With ValueHandler class you get that type exact you want.
Use-cases
Get database response with proper types
Library methods of version 7.2
raw() - returns original array
has($key = null) - flag that array has the index (key)
get($key = null) - Get element by index or without it
isUndefined() - flag that exemplar value is undefined
pull($key = null) - get array handler for nested array
pulling() - iterate through array and get handler for each element
asIs() - Get value as it is
int() - to integer
double() to double
str() - to string
bool() - to boolean
array() - to array
object() - to object
has() - flag that value of element was defined on exemplar construction
type() - get type of value
asUndefined() - value handler with undefined value
default($value = null) - define default value that will be used with undefined value
Detail info
Refer to
for detail examples of class methods working
Unit tests
Контакты
All versions of language-specific with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-json Version *
ext-json Version *
The package sbwerewolf/language-specific contains the following files
Loading the files please wait ....