ReflectionCommon is a PHP reflection interface library and code analysis abstraction. It serves as a foundation for static analysis by providing a shared specification for representing classes, methods, and properties during programmatic code inspection.
The main features of phpdocumentor/reflectioncommon are: PHP Code Analysis, Code Analysis APIs, Reflection Abstractions, PHP Reflection Libraries, Reflection API Standardizations, Reflection Abstraction Layers, Implementation-Agnostic APIs, Static Code Analysis Tools.
Open-source alternatives to phpdocumentor/reflectioncommon include: nunomaduro/phpinsights — PhpInsights is a static analysis tool and code quality analyzer for PHP. It evaluates source code to identify bugs,… sebastianbergmann/php-token-stream — php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that… doctrine/annotations — This project is a PHP docblock annotation parser and reflection metadata tool designed to extract structured metadata… theseer/tokenizer — This library is a PHP source code tokenizer and static analysis tool that converts raw PHP code into discrete tokens… friendsofphp/php-cs-fixer — PHP-CS-Fixer is a static analysis tool and code style linter designed to validate PHP code against predefined… larastan/larastan — Larastan is a static analysis extension and type inference engine for PHP designed to detect bugs and type errors in…
PhpInsights is a static analysis tool and code quality analyzer for PHP. It evaluates source code to identify bugs, style violations, and technical debt without executing the application. The tool functions as a complexity metric utility, calculating architectural and cyclomatic complexity to locate overly complicated logic. It measures overall software health and maintainability by comparing code against industry standards. The system manages technical debt through rule-based validation and metric-driven scoring. It uses a static analysis engine to parse source code, delivering the results
php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that reads tokens one by one, preventing the need to load entire source files into memory. The project provides memory-efficient parsing by wrapping the native PHP tokenizer extension. This allows for the sequential processing of source code tokens to analyze structural components and syntax. The tool is designed for static code analysis and the development of compiler tooling. It supports linear token processing and sequential traversal to examine language constructs and project
This project is a PHP docblock annotation parser and reflection metadata tool designed to extract structured metadata from doc-comments and convert them into class instances. It functions as a system for retrieving and managing custom metadata attached to classes, methods, and properties. The library includes a metadata caching system to store parsed results, which reduces the performance overhead associated with repeated reflection calls and string parsing. It also serves as a static analysis utility for validating source code structure and enforcing coding standards through automated docblo
This library is a PHP source code tokenizer and static analysis tool that converts raw PHP code into discrete tokens and structured XML representations. It functions as a serializer that transforms token streams into a machine-readable format for programmatic analysis and source tree manipulation. The project uses stream-based XML serialization and fragment-based buffer writing to maintain low memory overhead when processing large files. It allows for custom XML namespace configuration to ensure schema compatibility and avoid naming collisions during the transformation process. The toolkit c