ock/class-discovery

dev-main 2024-12-02 23:35 UTC

This package is auto-updated.

Last update: 2024-12-08 19:06:06 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.