Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Type Guard Laravel Package

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.

Deep Wiki
Context7

pinkary-project/type-guard brings expressive runtime type guards to PHP, letting you assert and narrow value types with a clean, fluent API. Instead of scattering is_string() checks or manual casts through your code, you call a guard that returns a correctly typed value or throws a descriptive exception—keeping your code safe, readable, and friendly to static analyzers.

  • Fluent API for asserting scalar and compound types
  • Clear, descriptive exceptions on type mismatches
  • Improved static analysis and IDE autocompletion
  • Framework-agnostic; works in any modern PHP project
  • Lightweight with a minimal footprint
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle