11# php-class-diagram
22
3- A CLI tool that parses the PHP source directory and outputs PlantUML class diagram scripts.
3+ A CLI tool that parses the PHP source directory and generates PlantUML class diagram scripts as output .
44
55![ Testing] ( https://github.com/smeghead/php-class-diagram/actions/workflows/php.yml/badge.svg?event=push ) [ ![ Latest Stable Version] ( http://poser.pugx.org/smeghead/php-class-diagram/v )] ( https://packagist.org/packages/smeghead/php-class-diagram ) [ ![ Total Downloads] ( http://poser.pugx.org/smeghead/php-class-diagram/downloads )] ( https://packagist.org/packages/smeghead/php-class-diagram ) [ ![ Latest Unstable Version] ( http://poser.pugx.org/smeghead/php-class-diagram/v/unstable )] ( https://packagist.org/packages/smeghead/php-class-diagram ) [ ![ License] ( http://poser.pugx.org/smeghead/php-class-diagram/license )] ( https://packagist.org/packages/smeghead/php-class-diagram ) [ ![ PHP Version Require] ( http://poser.pugx.org/smeghead/php-class-diagram/require/php )] ( https://packagist.org/packages/smeghead/php-class-diagram )
66
77## Features
88
9- * ♻️ Generating class diagrams from source code helps improve continuous design.
10- * 🔖 Generates expressive class diagrams with an emphasis on namespaces and relationships.
11- * 🔧 A simple CLI tool that is easy to handle .
12- * 💡 It is also possible to output a package relationship diagram that visualizes the dependency on the external namespace .
9+ * ♻️ Generating class diagrams from source code contributes to continuous design improvement .
10+ * 🔖 It produces expressive class diagrams with a focus on namespaces and relationships.
11+ * 🔧 This simple CLI tool is easy to use .
12+ * 💡 Additionally, it can generate a package relationship diagram to visualize dependencies on external namespaces .
1313
1414## What is PlantUML
1515
@@ -24,21 +24,21 @@ A CLI tool that parses the PHP source directory and outputs PlantUML class diagr
2424
2525### php-class-diagram class diagram without fields and methods
2626
27- If your analysis focuses on the relationships between classes, the simpler notation may be more suitable .
27+ If your analysis primarily focuses on the relationships between classes, a simpler notation may be more appropriate .
2828
2929![ dogfood class diagram image.] ( doc/images/dogfood-model.png )
3030
3131### php-class-diagram package related diagram
3232
33- Visualizing package relationships may expose critical design issues.
33+ Visualizing package relationships can uncover critical design issues.
3434
3535![ dogfood package related diagram image.] ( doc/images/dogfood-package.png )
3636
3737## Install
3838
3939### From DockerHub
4040
41- You can use docker image includes php-class-diagram and plantuml, from below URL.
41+ You can utilize a Docker image that includes php-class-diagram and PlantUML from the following URL.
4242
4343 * https://hub.docker.com/r/smeghead7/php-class-diagram
4444
@@ -51,14 +51,14 @@ $ composer init
5151$ composer require --dev smeghead/php-class-diagram
5252```
5353
54- you can execute ` ./vendor/bin/php-class-diagram ` .
54+ Now, you can execute ` ./vendor/bin/php-class-diagram ` .
5555for instance, try to display help message.
5656
5757``` bash
5858$ vendor/bin/php-class-diagram --help
5959usage: php-class-diagram [OPTIONS] < target php source directory>
6060
61- A CLI tool that parses the PHP source directory and outputs PlantUML class diagram scripts.
61+ A CLI tool that parses the PHP source directory and generates PlantUML class diagram scripts as output .
6262
6363OPTIONS
6464 -h, --help show this help page.
@@ -85,7 +85,7 @@ OPTIONS
8585
8686### Class Diagram
8787
88- When three php source files that TYPE commented exist in ` test/fixtures/no-namespace ` ,
88+ If there are three PHP source files in the directory test/fixtures/no-namespace each with a TYPE comment ,
8989
9090 * php source files.
9191
@@ -128,7 +128,7 @@ class Price {
128128}
129129```
130130
131- To execute ` php-class-diagram ` will print PlantUML script.
131+ Executing ` php-class-diagram ` will output the PlantUML script.
132132
133133``` bash
134134$ vendor/bin/php-class-diagram test/fixtures/no-namespace
@@ -169,7 +169,7 @@ $ vendor/bin/php-class-diagram \
169169
170170#### option ` include `
171171
172- You can add patterns to find target files to process .
172+ You can add patterns to specify the target files for processing .
173173
174174``` bash
175175$ vendor/bin/php-class-diagram \
@@ -180,7 +180,7 @@ $ vendor/bin/php-class-diagram \
180180
181181#### option ` exclude `
182182
183- You can specify patterns to exclude files from being processed .
183+ You can specify patterns to exclude files from the processing .
184184
185185``` bash
186186$ vendor/bin/php-class-diagram \
@@ -191,7 +191,7 @@ $ vendor/bin/php-class-diagram \
191191
192192### Package Diagram
193193
194- You can visualize package dependencies by creating a package relationship diagram with php-class-diagram.
194+ You can visualize package dependencies by creating a package relationship diagram using php-class-diagram.
195195
196196``` bash
197197$ vendor/bin/php-class-diagram --package-diagram test/fixtures/dependency-loops
@@ -209,8 +209,8 @@ $ vendor/bin/php-class-diagram --package-diagram test/fixtures/dependency-loops
209209@enduml
210210` ` `
211211
212- Packages that depend on each other are not desirable .
213- If it finds packages that depend on each other , it will warn you with a thick red line.
212+ Packages that depend on each other are undesirable .
213+ If the tool detects such dependencies , it will issue a warning with a thick red line.
214214
215215! [PlantUML output image.](doc/images/output-package-dep-loop.png)
216216
@@ -220,8 +220,8 @@ If it finds packages that depend on each other, it will warn you with a thick re
220220
221221# ## Division Diagram
222222
223- If you are using the Enum added in PHP8 .1, you can output the division diagram.
224- Visualizing the divisions used in the program can be useful for research and design.
223+ If you are utilizing the Enum feature introduced in PHP 8 .1, you can generate the division diagram.
224+ Visualizing the divisions employed in the program can be beneficial for research and design purposes .
225225
226226` ` ` bash
227227$ bin/php-class-diagram --division-diagram test/fixtures/enum/
0 commit comments