pinkary-project/type-guard
A lightweight Pinkary package that brings expressive runtime type guards to PHP and Laravel apps, letting you assert and validate value types safely and fail fast with clear errors instead of scattered manual checks.
is_string()/assert() ladders in every controller, job, and listener."0" or a nullable field silently changes behavior. Adopting narrowing helpers is a cheap lever to shrink that class of defect.@var docblock casts and inline ignores.Types/Guard helper" so the team gets the ergonomics without coupling application code to a 198-star, single-org library.data_get/DTO casting).is_* checks plus assert() suffice; you already standardize on DTOs/spatie/laravel-data or Symfony Serializer for typed hydration; or you need strong vendor guarantees, active CVE response, and a support contract.@var/ignore annotations, and no increase in boundary bug reports. If it doesn't move those numbers, we drop it — the exit cost is one afternoon."How can I help you explore Laravel packages today?