php-phpdocumentor-reflection1-1.0.7-5.fc26, php-phpdocumentor-reflection-common-1.0-1.fc26, & 2 more

FEDORA-2017-14cb178d90 created by siwinski 7 years ago for Fedora 26


Using this library it is possible to statically reflect one or more files and create an object graph representing your application's structure, including accompanying in-source documentation using DocBlocks.

The information that this library provides is similar to what the (built-in) Reflection extension of PHP provides; there are however several advantages to using this library:

  • Due to its Static nature it does not execute procedural code in your reflected files where Dynamic Reflection does.
  • Because the none of the code is interpreted by PHP (and executed) Static Reflection uses less memory.
  • Can reflect complete files
  • Can reflect a whole project by reflecting multiple files.
  • Reflects the contents of a DocBlock instead of just mentioning there is one.
  • Is capable of analyzing code written for any PHP version (starting at 5.2) up to and including your installed PHP version.


  • [Creates an object graph] containing the structure of your application much like a site map shows the structure of a website.
  • Can read and interpret code of any PHP version starting with 5.2 up to and including your currently installed version of PHP.
  • Due it's clean interface it can be in any application without a complex setup.


The ReflectionDocBlock component of phpDocumentor provides a DocBlock parser that is fully compatible with the PHPDoc standard.

With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.


Common reflection classes used by phpdocumentor to reflect the code structure.


The specification on types in DocBlocks (PSR-5) describes various keywords and special constructs but also how to statically resolve the partial name of a Class into a Fully Qualified Class Name (FQCN).

PSR-5 also introduces an additional way to describe deeper elements than Classes, Interfaces and Traits called the Fully Qualified Structural Element Name (FQSEN). Using this it is possible to refer to methods, properties and class constants but also functions and global constants.

This package provides two Resolvers that are capable of:

  1. Returning a series of Value Object for given expression while resolving any partial class names, and
  2. Returning an FQSEN object after resolving any partial Structural Element Names into Fully Qualified Structural Element names.

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf install --refresh --advisory=FEDORA-2017-14cb178d90 \*

This update has been submitted for testing by siwinski.

7 years ago

This update has been pushed to testing.

7 years ago

This update has reached 3 days in testing and can be pushed to stable now if the maintainer wishes

7 years ago

This update has been submitted for stable by siwinski.

7 years ago

This update has been pushed to stable.

7 years ago

Please login to add feedback.

Content Type
Test Gating
Unstable by Karma
Stable by Karma
Stable by Time
7 years ago
in testing
7 years ago
in stable
7 years ago
BZ#1431364 Review Request: php-phpdocumentor-reflection-common - Common reflection classes used by phpdocumentor
BZ#1431365 Review Request: php-phpdocumentor-type-resolver - A PSR-5 based resolver of Class names, Types and Structural Element Names
BZ#1442309 Review Request: php-phpdocumentor-reflection-docblock2 - DocBlock parser (Version 2)
BZ#1442310 Review Request: php-phpdocumentor-reflection1 - Reflection library to do Static Analysis for PHP Projects (Version 1)

Automated Test Results