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.
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:
TypeResolver::create() from reflection or raw stringsType to string (e.g., Collection<int>)isIdentifiedBy, isSatisfiedBy)How can I help you explore Laravel packages today?