Download the PHP package psychob/reflection-file without Composer
On this page you can find all versions of the php package psychob/reflection-file. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download psychob/reflection-file
More information about psychob/reflection-file
Files in psychob/reflection-file
Package reflection-file
Short Description Reflection File implementation
License MPL-2.0
Informations about the package reflection-file
ReflectionFile
A powerful PHP library for analyzing PHP files through reflection. This library extends PHP's native reflection capabilities by allowing you to examine PHP files without loading them into memory, providing information about classes, interfaces, traits, and other declarations.
Features
- Analyze PHP files without executing them
- Extract information about:
- Namespaces
- Classes (including abstract classes)
- Interfaces
- Traits
- Functions
- Objects
- Enums
- Lazy loading support for better performance
- Safe file parsing
Requirements
- PHP 8.3 or higher
- Composer
Installation
Install via Composer:
Usage
Basic Usage
Performance Optimization
The library supports deferred parsing and loading for better performance:
Advanced Features
Namespace Analysis
Class Analysis
Other Declarations
Security Considerations
This library parses PHP files. Always ensure you're analyzing trusted files, as parsing untrusted PHP files could potentially expose your application to security risks.
License
This project is licensed under the Mozilla Public License Version 2.0 - see the LICENSE file for details.
Author
- Andrzej Budzanowski [email protected]
All versions of reflection-file with dependencies
ext-tokenizer Version *