Registry / utility / andrewsville-php-token-reflection

andrewsville-php-token-reflection

JSON →
library1.4.0phppackagistunverified

Library emulating the PHP internal reflection using just the tokenized source code.

composer require andrewsville/php-token-reflection
INSTALL
IMPORT
SIG · ANDREWSVILLE-PHP-T
A
andrewsville-php-token-reflection
utilityphpv1.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReflectionClass
use TokenReflection\ReflectionClass;

Reflect on a class from tokenized source code

use TokenReflection\ReflectionClass; $tokenizer = new \TokenReflection\Broker(new \TokenReflection\Broker\Backend\Memory()); $tokenizer->processDirectory('/path/to/files'); $reflection = $tokenizer->getClass('MyClass'); echo $reflection->getName();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources