PHPackages                             florianwolters/component-util-reflection - 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. florianwolters/component-util-reflection

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

florianwolters/component-util-reflection
========================================

Provides operations for the PHP Reflection API as a PHP component.

v0.3.0(12y ago)2175.8k↑13.3%[1 issues](https://github.com/FlorianWolters/PHP-Component-Util-Reflection/issues)2LGPL-3.0+PHPPHP &gt;=5.4

Since Mar 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/FlorianWolters/PHP-Component-Util-Reflection)[ Packagist](https://packagist.org/packages/florianwolters/component-util-reflection)[ Docs](http://github.com/FlorianWolters/PHP-Component-Util-Reflection)[ RSS](/packages/florianwolters-component-util-reflection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (4)Used By (2)

Component\\Util\\Reflection
===========================

[](#componentutilreflection)

**Component\\Util\\Reflection** is a simple-to-use [PHP](https://php.net "PHP: Hypertext Preprocessor") component that provides operations for the [PHP Reflection Application Programming Interface (API)](http://php.net/book.reflection "PHP: Reflection").

[![Build Status](https://camo.githubusercontent.com/ccc24460781f113f06db895a00db5d34c749e12afbe53e956c9eefc8ddb37538/68747470733a2f2f7472617669732d63692e6f72672f466c6f7269616e576f6c746572732f5048502d436f6d706f6e656e742d5574696c2d5265666c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/FlorianWolters/PHP-Component-Util-Reflection)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bc4a9c2caf6efeb62f1089747194d7673408fdfdc728951ca825e34c87663c6a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466c6f7269616e576f6c746572732f5048502d436f6d706f6e656e742d5574696c2d5265666c656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/FlorianWolters/PHP-Component-Util-Reflection/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c2e58cdee034fd50d7ad50c153c5fbcd0f4c2574351affdcead556f9ffc4341c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466c6f7269616e576f6c746572732f5048502d436f6d706f6e656e742d5574696c2d5265666c656374696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/FlorianWolters/PHP-Component-Util-Reflection/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/23d0bb990d7d14cfdc0485c70033244a8e5732e9db7f46323b8be1c142315af0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65646336323338332d626632372d346533652d626433392d3337633635636362663332392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/edc62383-bf27-4e3e-bd39-37c65ccbf329)[![Coverage Status](https://camo.githubusercontent.com/3609e30e87e6b53fc5c6186506e5e9d9ccae2292b278b7432eeb2b608df921ba/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f466c6f7269616e576f6c746572732f5048502d436f6d706f6e656e742d5574696c2d5265666c656374696f6e2e737667)](https://coveralls.io/r/FlorianWolters/PHP-Component-Util-Reflection?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/61646bd154c17906aa24faeed0c1970fabf847a10e5f8b95d9273f42c30ac43f/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)[![Total Downloads](https://camo.githubusercontent.com/aa078a1604ecf24fb42db6b7d866c43850748882a0ec55a12152c9f5ae765fc3/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)[![Monthly Downloads](https://camo.githubusercontent.com/2689157020acdf1049519c3342eb9fccdb9c02c19d47015778989d3894636f1c/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)[![Daily Downloads](https://camo.githubusercontent.com/2f918727db2335d66ec3abba2ba24f3f6c07d0c0f82fe2b7d9a402a42447219d/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f642f6461696c792e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)[![Latest Unstable Version](https://camo.githubusercontent.com/7cec48633a468f54f20438bad0c461fdd3155de659fe898a6d5685cefcd30fd0/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f762f756e737461626c652e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)[![License](https://camo.githubusercontent.com/96fdc50c81566324e9eaf45bb9230392a345766c8080a65f717bcc7054b8a3dd/68747470733a2f2f706f7365722e707567782e6f72672f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2f6c6963656e73652e706e67)](https://packagist.org/packages/florianwolters/component-Util-Reflection)

[![Stories in Ready](https://camo.githubusercontent.com/c54926d45676f05341b28f90811f3ad3615363cc3f2b45e699b8f522d71f2714/68747470733a2f2f62616467652e776166666c652e696f2f666c6f7269616e776f6c746572732f7068702d636f6d706f6e656e742d5574696c2d5265666c656374696f6e2e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/florianwolters/php-component-Util-Reflection)[![Dependency Status](https://camo.githubusercontent.com/4ace99abd2894f0f7399daf7b70981457807c35c2f0bb561ef31d6a1712e1622/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3531633333306638353836326334303030323030303533652f62616467652e737667)](https://www.versioneye.com/user/projects/51c330f85862c4000200053e)[![Dependencies Status](https://camo.githubusercontent.com/957b4411e44f11acbe50085615e4ad14824b99527a1eaf288ceccf1461211818/68747470733a2f2f646570656e64696e672e696e2f466c6f7269616e576f6c746572732f5048502d436f6d706f6e656e742d5574696c2d5265666c656374696f6e2e706e67)](http://depending.in/FlorianWolters/PHP-Component-Util-Reflection)[![HHVM Status](https://camo.githubusercontent.com/6874bf9b849a5e8023b578ebdaab799692c41d1f52dcb73c83aedccc6a9580e0/687474703a2f2f6868766d2e683463632e64652f62616467652f666c6f7269616e776f6c746572732f636f6d706f6e656e742d5574696c2d5265666c656374696f6e2e706e67)](http://hhvm.h4cc.de/package/florianwolters/component-Util-Reflection)

Table of Contents (ToC)
-----------------------

[](#table-of-contents-toc)

- [Introduction](#introduction)
- [Features](#features)
- [Requirements](#requirements)
- [Usage](#usage)
- [Installation](#installation)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Introduction
------------

[](#introduction)

**Component\\Util\\Reflection** consists of one artifact:

- The static class [`ReflectionUtils`](src/main/php/ReflectionUtils.php "FlorianWolters\Component\Util\ReflectionUtils"): Provides methods which simplify the usage of the [PHP Reflection Application Programming Interface (API)](http://php.net/book.reflection "PHP: Reflection").

Features
--------

[](#features)

- Artifacts tested with both static and dynamic test procedures:
    - Dynamic component tests (unit and integration tests) implemented with [PHPUnit](https://phpunit.de "PHPUnit").
    - Static code analysis performed using the following tools:
        - [PHP\_CodeSniffer](https://pear.php.net/package/PHP_CodeSniffer "PHP_CodeSniffer"): Style Checker
        - [PHP Mess Detector (PHPMD)](http://phpmd.org "PHPMD - PHP Mess Detector"): Code Analyzer
        - [PHP Depend](http://pdepend.org "PHP Depend - Software Metrics for PHP"): Code Metrics
        - [phpcpd](https://github.com/sebastianbergmann/phpcpd "sebastianbergmann/phpcpd · GitHub"): Copy/Paste Detector (CPD)
        - [phpdcd](https://github.com/sebastianbergmann/phpdcd "sebastianbergmann/phpdcd · GitHub"): Dead Code Detector (DCD)
        - [SensioLabs Security Checker](https://github.com/sensiolabs/security-checker "SensioLabs Security Checker"): Security Checker
    - Continuous Integration (CI) using the following web services:
        - [Scrutinizer CI](https://scrutinizer-ci.com "Scrutinizer CI")
        - [SensioLabsInsight](https://insight.sensiolabs.com "SensioLabsInsight")
        - [Coveralls](https://coveralls.io "Coveralls")
        - [VersionEye](https://versioneye.com "VersionEye")
        - [Depending](https://depending.in "Depending")
        - [Waffle](https://waffle.io "Waffle")
- Provides a [Packagist](https://packagist.org "Packagist") package which can be installed using the dependency manager [Composer](https://getcomposer.org "Composer"). Click [here](https://packagist.org/packages/florianwolters/component-Util-Reflection "florianwolters/component-Util-Reflection - Packagist") for the package on [Packagist](https://packagist.org "Packagist").
- Provides a complete Application Programming Interface (API) documentation generated with the documentation generator [Sami](https://github.com/fabpot/sami "fabpot/sami · GitHub"). Click [here](http://blog.florianwolters.de/PHP-Component-Util-Reflection "Application Programming Interface (API) documentation") for the API documentation.
- Follows the following "standards" from the [PHP Framework Interoperability Group (FIG)](http://php-fig.org "PHP-FIG — PHP Framework Interop Group"). PSR stands for PHP Standards Recommendation:
    - [PSR-0](http://php-fig.org/psr/psr-0 "PSR-0 requirements for autoloader interoperability"): Autoloading Standards

        > Aims to provide a standard file, class and namespace convention to allow plug-and-play code.
    - [PSR-1](http://php-fig.org/psr/psr-1 "PSR-1 basic coding style guide"): Basic Coding Standard

        > Aims to ensure a high level of technical interoperability between shared PHP code.
    - [PSR-2](http://php-fig.org/psr/psr-2 "PSR-2 coding style guide"): Coding Style Guide

        > Provides a Coding Style Guide for projects looking to standardize their code.
    - [PSR-4](http://php-fig.org/psr/psr-4 "PSR-4: Improved Autoloading"): Autoloader

        > A more modern take on autoloading reflecting advances in the ecosystem.
- Follows the [Semantic Versioning](http://semver.org "Semantic Versioning") (SemVer) specification version 2.0.0.

Requirements
------------

[](#requirements)

### Production

[](#production)

- [PHP](https://php.net "PHP: Hypertext Preprocessor") &gt;= 5.4
- [Composer](https://getcomposer.org "Composer")

### Development

[](#development)

- [PHPUnit](https://phpunit.de "PHPUnit")
- [phpcpd](https://github.com/sebastianbergmann/phpcpd "sebastianbergmann/phpcpd · GitHub")
- [phpdcd](https://github.com/sebastianbergmann/phpdcd "sebastianbergmann/phpdcd · GitHub")
- [PHP\_CodeSniffer](https://pear.php.net/package/PHP_CodeSniffer "PHP_CodeSniffer")
- [PHP Mess Detector (PHPMD)](http://phpmd.org "PHPMD - PHP Mess Detector")
- [Sami](https://github.com/fabpot/sami "fabpot/sami · GitHub")
- [SensioLabs Security Checker](https://github.com/sensiolabs/security-checker "SensioLabs Security Checker")
- [php-coveralls](https://github.com/satooshi/php-coveralls "satooshi/php-coveralls · GitHub")

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

[](#installation)

**Component\\Util\\Singleton** should be installed using the dependency manager [Composer](https://getcomposer.org "Composer").

> [Composer](https://getcomposer.org "Composer") is a tool for dependency management in [PHP](https://php.net "PHP: Hypertext Preprocessor"). It allows you to declare the dependent libraries your project needs and it will install them in your project for you.

The [Composer](https://getcomposer.org "Composer") installer can be downloaded with `php`.

```
php -r "readfile('https://getcomposer.org/installer');" | php

```

> This will just check a few [PHP](https://php.net "PHP: Hypertext Preprocessor") settings and then download `composer.phar`to your working directory. This file is the [Composer](https://getcomposer.org "Composer") binary. It is a PHAR ([PHP](https://php.net "PHP: Hypertext Preprocessor") archive), which is an archive format for [PHP](https://php.net "PHP: Hypertext Preprocessor") which can be run on the command line, amongst other things.

> To resolve and download dependencies, run the `install` command:

```
php composer.phar install

```

If you are creating a component that relies on **Component\\Util\\Singleton**, please make sure that you add **Component\\Util\\Singleton** to your component's `composer.json` file:

```
{
    "require": {
        "florianwolters/component-Util-Reflection": "0.3.*"
    }
}
```

Usage
-----

[](#usage)

The best documentation for **Component\\Util\\Singleton** are the unit tests, which are shipped in the package.

Additional documentation can be found in the \[official Wiki\]\[55\] of the project.

Testing
-------

[](#testing)

```
phpunit

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Florian Wolters](https://github.com/FlorianWolters "FlorianWolters · GitHub")
- [All Contributors](https://github.com/FlorianWolters/PHP-Component-Util-Reflection/contributors "Contributors to FlorianWolters/PHP-Component-Util-Reflection")

License
-------

[](#license)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see .

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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

Every ~200 days

Total

3

Last Release

4421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75dd7e42d69a87c4a0c68b4f29f5d223eb1f9a3f647abafa72da80d2a06d2442?d=identicon)[FlorianWolters](/maintainers/FlorianWolters)

---

Top Contributors

[![FlorianWolters](https://avatars.githubusercontent.com/u/1318837?v=4)](https://github.com/FlorianWolters "FlorianWolters (27 commits)")

---

Tags

utilityreflection

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/florianwolters-component-util-reflection/health.svg)

```
[![Health](https://phpackages.com/badges/florianwolters-component-util-reflection/health.svg)](https://phpackages.com/packages/florianwolters-component-util-reflection)
```

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k706.8M26](/packages/phpdocumentor-reflection-common)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5432.1M3](/packages/mage2tv-magento-cache-clean)

PHPackages © 2026

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