Weave Code
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 Info Laravel Package

symfony/type-info

Symfony TypeInfo extracts and normalizes PHP type information. Resolve types from reflections or strings, build complex types via factories (nullable, list, generic, enum), cast to readable strings, and query identifiers/conditions for safer tooling and analysis.

View on GitHub
Deep Wiki
Context7

The Symfony TypeInfo component extracts and normalizes PHP type information from code and reflection, turning scalar, object, generic, nullable, and collection-like declarations into a consistent Type model. It pairs with a TypeResolver to resolve types from strings, ReflectionProperty, and other subjects, making type introspection predictable across native hints and enhanced metadata.

Key features:

  • Resolve types via TypeResolver::create() from reflection or raw strings
  • Build types fluently with static factories (e.g., list, nullable, generic)
  • Inspect specifics: class names, enum backing types, list detection
  • Cast any Type to string (e.g., Collection<int>)
  • Validate types with identifiers or custom predicates (isIdentifiedBy, isSatisfiedBy)
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport