fasano/phprimitives
fasano/phprimitives provides strongly-typed, immutable wrappers for PHP primitives, turning strings, numbers, booleans, and arrays into self-validating value objects with a clean, chainable API for safer data handling in PHP and Laravel apps.
fasano/phprimitives brings object-oriented, type-safe handling to PHP’s native scalar types. It wraps strings, numbers, booleans, and arrays in immutable value objects, giving you a fluent API for validation, conversion, and safe null handling without scattering defensive checks throughout your code.
How can I help you explore Laravel packages today?