File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## v1.5.0 (2024-12-07)
4+
5+ ### Features
6+
7+ * feat: Filter relations from and to class #90 (@jose-ba )
8+
39### Bug fix
410
511 * Add argument to ` --svg-topurl ` in help message.
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ OPTIONS
119119 --header=' header string' additional header string. You can specify multiple header values.
120120 --include=' wildcard' include target file pattern. (default: ` * .php` ) You can specify multiple include patterns.
121121 --exclude=' wildcard' exclude target file pattern. You can specify multiple exclude patterns.
122+ --rel-target-from=' clases' comma separated list of classes to filter dependencies from
123+ --rel-target-to=' classes' comma separated list of classes to filter dependencies to
124+ --rel-target=' classes' comma separated list of classes to filter dependencies from or to. this option overrides
125+ --rel-target-from and --rel-target-to if set.
126+ --rel-target-depth=integer max depth of dependencies to show when using --from or --to filters
122127` ` `
123128
124129# # How to execute
@@ -229,6 +234,26 @@ $ vendor/bin/php-class-diagram \
229234 path/to/src
230235` ` `
231236
237+ # ### option `rel-target`
238+
239+ If there are a very large number of target classes, the class diagram will be cumbersome and difficult to understand.
240+ In such a case, you can specify the classes you want to study in the ` --rel-target` field to generate a class diagram for only the related classes.
241+ By using ` --rel-target-from` and ` --rel-target-to` , it is also possible to further narrow down the list according to the direction of dependencies.
242+
243+ ` ` ` bash
244+ $ vendor/bin/php-class-diagram \
245+ --rel-target-from=Entry \
246+ --rel-target-depth=3 \
247+ path/to/src
248+ ` ` `
249+
250+ ` ` ` bash
251+ $ vendor/bin/php-class-diagram \
252+ --rel-target-from-from=Entry \
253+ --rel-target-depth=3 \
254+ path/to/src
255+ ` ` `
256+
232257# ## Package Diagram
233258
234259You can visualize package dependencies by creating a package relationship diagram using php-class-diagram.
Original file line number Diff line number Diff line change 1313
1414final class Main
1515{
16- public const VERSION = 'v1.4.2 ' ;
16+ public const VERSION = 'v1.5.0 ' ;
1717
1818 public function __construct (
1919 private string $ directory ,
You can’t perform that action at this time.
0 commit comments