Download the PHP package alexpts/php-typecast without Composer
On this page you can find all versions of the php package alexpts/php-typecast. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alexpts/php-typecast
More information about alexpts/php-typecast
Files in alexpts/php-typecast
Download alexpts/php-typecast
More information about alexpts/php-typecast
Files in alexpts/php-typecast
Vendor alexpts
Package php-typecast
Short Description Simple type cast request data
License MIT
Homepage https://github.com/alexpts/php-typecast
Package php-typecast
Short Description Simple type cast request data
License MIT
Homepage https://github.com/alexpts/php-typecast
Please rate this library. Is it a good library?
Informations about the package php-typecast
PHP typecast
Cast types
Install
composer require alexpts/php-typecast
Example
Types:
string
Set type to string
bool
Set type to boolean
int
Set type to int
array
Set type to array
float
Set type to float
object
Set type to float
null
Set type to null
numbers
Remove all not number symbols from string
each
Convert each array item to describe types (see example above)
datetime
Convert value to \DateTime object with default timezone
datetimeFormat
Convert \DateTime object to string via format method
Custom convert type
You can add custom convert via method on TypeCast service
All versions of php-typecast with dependencies
PHP Build Version
Package Version
The package alexpts/php-typecast contains the following files
Loading the files please wait ....