|
2 | 2 |
|
3 | 3 | ## 1. Summary
|
4 | 4 |
|
5 |
| -The purpose of documentation using PHPDoc is to provide a comprehensive but flexible way to describe a software system |
6 |
| -at the smallest possible level of detail. This type of documentation aids contributors and consumers of your source |
7 |
| -code to, for example, understand what type of information needs to be passed to specific methods, or how to be able to |
8 |
| -consume a class of the project that a consumer want to use. |
9 |
| - |
10 |
| -By documenting specific elements inside the source code, the documentation for that part of the source code will be less |
11 |
| -susceptible to becoming out of date. |
12 |
| - |
13 | 5 | PHPDoc as a notation was first presented in 2000 by Ulf Wendel, is heavily inspired by JavaDoc,
|
14 | 6 | and is currently in use by a significant percentage of public PHP projects in the field.
|
15 | 7 |
|
16 | 8 | ## 2. Why Bother?
|
17 | 9 |
|
18 |
| -PHPDocumentor has spearheaded and facilitated the growth of the PHPDoc notation, but with the growing number of other |
19 |
| -tools that use the PHPDoc notation, it is becoming increasingly important to have an official and formal standard |
20 |
| -instead of the de-facto status that is currently provided. |
| 10 | +PHPDocumentor has facilitated the growth of the PHPDoc notation, but with the growing number of other |
| 11 | +tools that use the PHPDoc notation, it is becoming increasingly important to have a formal standard |
| 12 | +instead of its de-facto status. |
21 | 13 |
|
22 | 14 | Pros:
|
23 | 15 |
|
24 | 16 | * Developers (consumers) have a common reference to refer to when confronted with PHPDoc.
|
25 | 17 | * Projects and their Developers (contributors) have an authoritative reference which they can consult.
|
26 | 18 | * IDE vendors can standardize the way they use PHPDoc to aid in concerns such as auto-completion and navigation.
|
27 |
| -* Projects using the PHPDoc data to complement their functionality, such as Documentation generators or applications |
28 |
| - using annotations, will have a common language with their consumers. |
29 |
| -* Missing functionality can be described and implemented by aforementioned stakeholders. |
| 19 | +* Projects using the PHPDoc data to complement their functionality, such as Documentation generators or static |
| 20 | + analysis tools, will have a common language with their consumers. |
30 | 21 |
|
31 | 22 | Cons:
|
32 | 23 |
|
|
0 commit comments