Getting started =============== This page will give you a quick introduction to the `phpdocumentor/reflection` package and how to get started with it. Installation ------------ In order to inspect a codebase you need to tell composer to include the `phpdocumentor/reflection` package. This can easily be done using the following command in your command line terminal: .. code-block:: bash composer require phpdocumentor/reflection:~6.0 In order to use the library you need to include the autoloader of composer in your code. This can be done by adding the following line to your code: .. code-block:: php create('My Project', $projectFiles); When the process is ready a new object of type :php:class:`phpDocumentor\Reflection\Php\Project` will be returned that contains a complete hierarchy of all files with their classes, traits and interfaces (and everything in there), but also all namespaces and packages as a hierarchical tree. This library does not provide a way to access the structure of the codebase in a searchable way. This is up to the consumer of the library to implement.