Registry / utility / setbased-helper-cast

setbased-helper-cast

JSON →
library3.1.0phppackagistunverified

Safely cast mixed values to bool, float, int, or string.

composer require setbased/helper-cast
INSTALL
IMPORT
SIG · SETBASED-HELPER-CA
S
setbased-helper-cast
utilityphpv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cast
use SetBased\Helper\Cast;

Safely cast a mixed value to integer

use SetBased\Helper\Cast; $int = Cast::toInt('42'); echo $int; // 42
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
setbased-helper-cast — pip install setbased-helper-cast · libregistry