Libraries tagged by casts
orklah/psalm-strict-numeric-cast
67109 Downloads
Restrict the use of (int) and (float) to numeric-string only
wplake/typed
2054 Downloads
Lightweight PHP utility for seamless type-casting and data retrieval from dynamic variables, arrays, and objects.
lionix/castable-request
94877 Downloads
Apply Eloquent attribute casts to Laravel form request input.
aveiv/mixed-value
154189 Downloads
MixedValue provides easy array access and the ability to convert/cast values
arthurydalgo/laravel-iso-countries
38128 Downloads
Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.
tommyknocker/pdo-database-class
6670 Downloads
Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. No framework dependency.
ghanuz/relations
6766 Downloads
To create a Eloquent relationships with comma separated foreign key or using a FIND_IN_SET mysql function.
snoeren-development/laravel-currency-casting
31201 Downloads
Cast currency attributes, stored as integer, to floats automatically.
roundly-consulting/options-for-laravel
901 Downloads
Manage global or per-entity options and preferences with typed casts and in-request caching.
lphilippo/laravel-castable-form-request
35385 Downloads
Laravel/Lumen package to add Eloquent-like casts to Form Requests.
inspirum/xml
16445 Downloads
Simple XML writer and memory efficient XML reader with powerful xml-to-array cast
abetwothree/laravel-ts-publish
7304 Downloads
Create TypeScript declaration types from your PHP models, enums, and other cast classes
sushi-market/smart-cast
4550 Downloads
Smart casts for PHP
setbased/helper-cast
67878 Downloads
Safely cast mixed values to bool, float, int, or string
redcrystal/cast
23166 Downloads
Laravel Value Objects: Cast your Eloquent model attributes to value objects with ease!