bizarg / type-helper
type helper function
dev-master
2020-11-28 10:48 UTC
Requires
- php: >=7.2
- nesbot/carbon: ^2.31
This package is auto-updated.
Last update: 2025-03-28 20:41:02 UTC
README
<?php use Bizarg\TypeHelper\TypeHelper; require 'vendor/autoload.php'; $value = 'false'; TypeHelper::float($value); // return float or null TypeHelper::carbon($value, 'Y-m-d'); // return Carbon or null TypeHelper::bool($value); //return bool or null TypeHelper::int($value); //return int or null