How To Install php-phpdocumentor-reflection on CentOS 7
Introduction
In this tutorial we learn how to install php-phpdocumentor-reflection
on CentOS 7.
What is php-phpdocumentor-reflection
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. Features * [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. Autoloader
We can use yum
or dnf
to install php-phpdocumentor-reflection
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpdocumentor-reflection.
Install php-phpdocumentor-reflection on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-phpdocumentor-reflection
using yum
by running the following command:
Install php-phpdocumentor-reflection on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-phpdocumentor-reflection
using dnf
by running the following command:
How To Uninstall php-phpdocumentor-reflection on CentOS 7
To uninstall only the php-phpdocumentor-reflection
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-phpdocumentor-reflection
on CentOS 7 using yum
and dnf
.