PHPackages                             psychob/reflection-file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. psychob/reflection-file

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

psychob/reflection-file
=======================

Reflection File implementation

2.0(1y ago)02791MPL-2.0PHPPHP &gt;=8.3

Since Jun 19Pushed 1y agoCompare

[ Source](https://github.com/psychob/reflection-file)[ Packagist](https://packagist.org/packages/psychob/reflection-file)[ RSS](/packages/psychob-reflection-file/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (7)Used By (1)

ReflectionFile
==============

[](#reflectionfile)

[![Latest Stable Version](https://camo.githubusercontent.com/bbe383bbe5aa2f8e7088894788eb68a12381bb97f6351f71f779220a49f6308c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70737963686f622f7265666c656374696f6e2d66696c652e737667)](https://packagist.org/packages/psychob/reflection-file)[![License](https://camo.githubusercontent.com/4e53f83d5b96afefe722db591b22d5080623984543431eb630fd1e266761b995/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d504c2d2d322e302d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/7e80c5a44b0f819258f09384c7af693fe7f3f1ebe4ae8c6833b5c34f2dd57d03/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e332d3838393242462e737667)](https://php.net/)

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
--------

[](#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
------------

[](#requirements)

- PHP 8.3 or higher
- Composer

Installation
------------

[](#installation)

Install via Composer:

```
composer require psychob/reflection-file
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
