← Back to Packages
View on GitHub →
Package
PHP Mixed Converter
PHP
Convert mixed values to string, int, or float safely.
Overview
PHP utility class with static methods to convert mixed values to strings, ints, or floats. Useful when strict types are enabled or when the exact type is unknown (e.g. request input in Laravel).
Installation
composer require labrodev/php-mixed-converter
Tips
- • MixedConverter::toString(), toInt(), and toFloat().