ock / class-discovery
dev-main
2025-06-03 00:11 UTC
Requires
- php: >=8.3
- ext-json: *
- ock/class-files-iterator: dev-main
- ock/helpers: dev-main
- ock/reflection: dev-main
- ock/reflector-aware-attributes: dev-main
Requires (Dev)
- phpunit/phpunit: ^10.5.38
This package is auto-updated.
Last update: 2026-06-04 23:10:54 UTC
README
This package provides components and abstractions to help with all kinds of discovery operations across php class files.
Main concepts:
ReflectionClassesIA*:
IteratorAggregate that lists a special type of\ReflectionClassclass objects.
Typically this is based on aClassFilesIA*object.FactoryReflection*:
Interface for customClassReflectionandMethodReflection, with methods that treat both of them as "factories".FactoryInspector*:
Inspects a classes or methods, to find whatever you might be looking for.Discovery*:
IteratorAggregate to discover objects found by an inspector in reflection methods.