Weave 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

Phpdoc Reader Laravel Package

php-di/phpdoc-reader

PhpDocReader parses @var and @param docblock types to resolve class names, supporting fully qualified, imported, relative, and aliased names with the same rules as PHP. Primitive types are ignored; only valid class names are returned. Used by PHP-DI.

View on GitHub
Deep Wiki
Context7
2.2.1

Fix type issue

2.2.0

#20 PHP 8 support

2.1.1

#17 Add iterable to the list of ignored types

2.1.0

Support for PHP 5.3 was dropped.

#12: Support for the mixed type

2.0.0

The package was renamed from mnapoli/phpdocreader to php-di/phpdoc-reader and moved to the PHP-DI organization.

Additionally the package is now standalone and doesn't require doctrine/annotations anymore.

1.3.0

Added an option to ignore phpdoc errors (invalid classes)

1.2.1

Bugfix related to #3 (support class names containing "_")

1.2.0

Fixes #3: Handle unrecognizable types: multiple types, generics, arrays, …

1.1.0

Changes:

  • deprecated getPropertyType in favor of getPropertyClass
  • deprecated getParameterType in favor of getParameterClass

Fixes:

  • #1 Primitive types ([@var](https://github.com/var) bool) would raise exceptions
1.0.0

First stable release.

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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager