Libraries tagged by casting
tommyknocker/struct
10 Downloads
Map external arrays and JSON into validated PHP DTOs and explicit outbound payloads
mkd/laravel-state-management
7 Downloads
a state management package for Laravel, enabling shared and persistent application state across services, requests, and files without the need for reinitialization. It supports casting, default state handling, and custom methods for managing complex state in your Laravel applications
eurym3d0n/elephenv
5 Downloads
A strictly typed PHP environment loader with validation, type inference, integrity checks, and structured error rendering.
entelisteam/lbaf-reflection
43 Downloads
Lightweight PHP reflection utilities: enum helper, type caster, short class name resolver, cached method parameter lookup.
tailflow/dto
312 Downloads
A simple and lightweight implementation of Data Transfer Objects (DTO) in Laravel with optional casting support.
sfneal/casts
60423 Downloads
An alternative implementation of the Eloquent Model accessors & mutators pattern for type casting attributes
qphpstorage/qphpstorage
12 Downloads
A simple wrapper around swoole4 table storage, with casting.
pixiaoka/orm
4 Downloads
Annotation-driven Active Record ORM for PHP 8.3+. Zero framework dependency. PDO based. Supports composite primary keys, strict type casting at the boundary, dirty tracking, lifecycle hooks, row cache, transactions, coroutine-safe sessions.
ntzm/strict-casts
7 Downloads
Strict type casting for super defensive PHP
mass6/flexible-dto
4123 Downloads
Data transfer object with validation and value casting
lemax10/laravel-enums
1915 Downloads
Simple Enum implementation for Laravel. With ability to casting for Eloquent models and labels translations via lang files.
koda/koda
33746 Downloads
Utility classes for analyse code and invoking callables with verification of arguments and type casting
kariricode/dotenv
27 Downloads
The only PHP dotenv with auto type casting, AES-256-GCM encryption, OPcache caching, fluent validation DSL, environment-aware loading, and CLI tooling — zero dependencies, PHP 8.4+, ARFA 1.3.
jalet/util-sprintf
29068 Downloads
PHP's sprintf for named params with type casting.
esperecyan/webidl
8529 Downloads
Provides the utility class for casting a given value in accordance with WebIDL (Web IDL) type to help with PHP type declarations. / WebIDL (Web IDL) の型に沿うように、与えられた値をキャストするユーティリティクラスを提供し、PHP の型宣言を補助します。