Registry / utility / decodelabs-coercion

decodelabs-coercion

JSON →
library0.3.5phppackagistunverified

Simple tools for managing PHP types, providing type coercion and validation utilities.

composer require decodelabs/coercion
INSTALL
IMPORT
SIG · DECODELABS-COERCIO
D
decodelabs-coercion
utilityphpv0.3.5
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.

Coercion
use DecodeLabs\Coercion\Coercion;

Coerce a string to an integer using the Coercion class.

use DecodeLabs\Coercion\Coercion; $value = Coercion::toInt('42'); echo $value; // 42
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
decodelabs-coercion — pip install decodelabs-coercion · libregistry