andrewsville/php-token-reflection
PHP library for reflecting and analyzing PHP token streams. Parse source code into tokens and inspect structures like classes, functions, namespaces, and docblocks—useful for static analysis, code generation, and tooling without executing the code.
Architecture fit: Poor. Laravel's core relies on PHP's native Reflection API for runtime introspection, which this token-based emulation duplicates unnecessarily. It's designed for static analysis use cases (e.g., code generation), but Laravel's typical workflow doesn't require non-executing reflection—making it redundant and adding complexity without value.
Integration feasibility: Very low. Repository is "unknown" (no public code access), Packagist compatibility is unverified, and archived status blocks Composer installation reliability. Manual integration would require unsafe workarounds.
Technical risk: Critical. NOASSERTION license creates legal exposure (no clear usage rights). Archived status means no security patches, PHP 8+ syntax support gaps (e.g., union types, attributes), and unpatched vulnerabilities. High chance of breaking in production environments.
Key questions:
nikic/php-parser or PHPStan?How can I help you explore Laravel packages today?