ock/class-discovery

dev-main 2024-11-03 00:30 UTC

This package is auto-updated.

Last update: 2024-11-10 16:01:23 UTC


README

This package provides components and abstractions to help with all kinds of discovery operations across php class files.

Main concepts:

  • ClassFilesIA*:
    IteratorAggregate that lists class names keyed by their file names.
    • NamespaceDirectory:
      Main implementation representing a PSR-4 class files directory.
      It provides additional methods to navigate to parent or child directories.
  • ReflectionClassesIA*:
    IteratorAggregate that lists a special type of \ReflectionClass class objects.
    Typically this is based on a ClassFilesIA* object.
  • FactoryReflection*:
    Interface for custom ClassReflection and MethodReflection, 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.