Registry / utility / php-di-phpdoc-reader

php-di-phpdoc-reader

JSON →
library2.2.1phppackagistunverified

PhpDocReader parses @var and @param values in PHP docblocks (supports namespaced class names with the same resolution rules as PHP)

composer require php-di/phpdoc-reader
INSTALL
IMPORT
SIG · PHP-DI-PHPDOC-READ
P
php-di-phpdoc-reader
utilityphpv2.2.1
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.

PhpDocReader
use PhpDocReader\PhpDocReader;

Read the class type from a property's @var annotation.

use PhpDocReader\PhpDocReader; $reader = new PhpDocReader(); $type = $reader->getPropertyClass(new \ReflectionProperty(MyClass::class, 'property'));
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
php-di-phpdoc-reader — pip install php-di-phpdoc-reader · libregistry