PHPackages                             funkyproject/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. funkyproject/reflection-file

ActiveLibrary

funkyproject/reflection-file
============================

v0.1(12y ago)157.3k↓12.5%11PHP

Since Apr 2Pushed 12y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

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

[](#reflectionfile)

Use `Attraktiv\ReflectionFile` to retrieve a lot of information about class into the file.

[![Build Status](https://camo.githubusercontent.com/afdf6591c8331de7a5a9ab7daef08bf4d62806651ad8134882c2e124c275d400/68747470733a2f2f7472617669732d63692e6f72672f66756e6b7970726f6a6563742f7265666c656374696f6e2d66696c652e706e67)](https://travis-ci.org/funkyproject/reflection-file) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/78483b2149d5a3658248d6c22e3dafad33026d08edeafadf8d072551264771c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66756e6b7970726f6a6563742f7265666c656374696f6e2d66696c652f6261646765732f7175616c6974792d73636f72652e706e673f733d66653539363263313631316231316339353937373837633936373734323535326163623735306261)](https://scrutinizer-ci.com/g/funkyproject/reflection-file/) [![Code Coverage](https://camo.githubusercontent.com/cc7b280af4b427874533e6e810c653a3b50a4196c30185fe211335fe4dae2281/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66756e6b7970726f6a6563742f7265666c656374696f6e2d66696c652f6261646765732f636f7665726167652e706e673f733d64346539633733653037316530373238393563376365343364353562386661303932333634363662)](https://scrutinizer-ci.com/g/funkyproject/reflection-file/)

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

[](#installation)

You can install this lib using composer

```
composer require funkyproject/reflection-file

```

or add the package to your `composer.json` file directly

Usage
-----

[](#usage)

```
use Funkyproject\ReflectionFIle;

$reflectionFile = new ReflectionFile($pathFileValid);
$reflectionFile->getName() // Namespace/ClassName
$instance = $reflectionFile->newInstance();

```

More information about methods are available on

If file not found, `ReflectionFile` will throw a `FileNotFoundException`

If file is not a class, ReflectionFile will throw a `ReflectionException`

Tests
-----

[](#tests)

You can run the unit tests with the following command:

```
 $ cd path/to/ReflectionFile/
 $ composer.phar install
 $ phpunit

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4429d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/206595?v=4)[Aurélien FONTAINE](/maintainers/funkyproject)[@funkyproject](https://github.com/funkyproject)

---

Top Contributors

[![funkyproject](https://avatars.githubusercontent.com/u/206595?v=4)](https://github.com/funkyproject "funkyproject (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/funkyproject-reflection-file/health.svg)

```
[![Health](https://phpackages.com/badges/funkyproject-reflection-file/health.svg)](https://phpackages.com/packages/funkyproject-reflection-file)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
