You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-32Lines changed: 9 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,9 @@ are however several advantages to using this library:
22
22
23
23
*[Creates an object graph] containing the structure of your application much like a site map shows the
24
24
structure of a website.
25
-
* Supports [incrementally updating] a previously analyzed codebase by caching the results
26
-
and checking if any of the files have changed.
27
-
* Can [filter] the object graph, for example to hide specific elements.
28
-
* You can inspect your object graph, analyze it and report any errors and inconsistencies found using [validators].
29
25
* Can read and interpret code of any PHP version starting with 5.2 up to and including your currently installed version
30
26
of PHP.
31
-
*Can be integrated into Silex and Cilex using a [Service Provider].
27
+
*Due it's clean interface it can be in any application without a complex setup.
32
28
33
29
## Installation
34
30
@@ -41,49 +37,30 @@ After the installation is complete no further configuration is necessary and you
41
37
42
38
## Basic Usage
43
39
44
-
This Reflection library uses [PSR-0] and it is recommended to use a PSR-0 compatible autoloader to load all the
40
+
This Reflection library uses [PSR-4] and it is recommended to use a PSR-4 compatible autoloader to load all the
45
41
files containing the classes for this library.
46
42
47
43
An easy way to do this is by including the [composer] autoloader as shown here:
48
44
49
45
include 'vendor/autoload.php';
50
46
51
-
Once that is done you can use the `create()` method of the `Analyzer` class to instantiate your source Analyzer and
47
+
Once that is done you can use the `createIntance()` method of the `\phpDocumentor\Reflection\Php\ProjectFactory` class to instantiate a new project factory and
At this point we are ready to analyze files, one at a time. By loading the file using an `SplFileObject` class and
57
-
feeding that to the `analyze` of the `Analyzer` method we convert the PHP code in that file into an object of type
58
-
`phpDocumentor\Reflection\Php\File`.
52
+
At this point we are ready to analyze your complete project or just one file at the time. Just pass an array of file paths to the `create` method of the project factory.
59
53
60
-
This object describing a file is returned to us but also added to another object that describes your entire project.
0 commit comments